Documentation ¶
Index ¶
- type BlockSync
- func (bs *BlockSync) Commit() chan []*types.Block
- func (bs *BlockSync) InitBlockSyncInfo(peers []string, latestBlockHash string, quorum, curHeight, targetHeight uint64, ...)
- func (bs *BlockSync) Start() error
- func (bs *BlockSync) StartSync(peers []string, latestBlockHash string, quorum, curHeight, targetHeight uint64, ...) error
- func (bs *BlockSync) Stop()
- func (bs *BlockSync) StopSync() error
- type Sync
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlockSync ¶
type BlockSync struct {
// contains filtered or unexported fields
}
todo: requester and chunk change to sync pool
func NewBlockSync ¶
func (*BlockSync) InitBlockSyncInfo ¶
func (bs *BlockSync) InitBlockSyncInfo(peers []string, latestBlockHash string, quorum, curHeight, targetHeight uint64, quorumCheckpoint *consensus.SignedCheckpoint, epc ...*consensus.EpochChange)
Directories ¶
Path | Synopsis |
---|---|
Package mock_block_sync is a generated GoMock package.
|
Package mock_block_sync is a generated GoMock package. |
Click to show internal directories.
Click to hide internal directories.