package
0.5.0
Repository: https://github.com/frankonly/iotex-core.git
Documentation: pkg.go.dev

# Functions

NewBlockSyncer returns a new block syncer instance.
NewSlidingWindow returns a SlidingWindow instance.
WithNeighbors is the option to set the neighbors callback.
WithUnicastOutBound is the option to set the unicast callback.

# Constants

Closed indicates a closed state.
Closing indicates a closing state.
Open indicates an open state.

# Variables

ErrInvalidRange indicates invalid range.
WindowSize defines the bufferSize of window.

# Structs

Config represents the config to setup blocksync.
SlidingWindow implements a sliding window.

# Interfaces

BlockSync defines the interface of blocksyncer.

# Type aliases

No description provided by the author
Option is the option to override the blocksync config.
No description provided by the author