Documentation ¶
Index ¶
- func HandleIBD(context HandleIBDContext, incomingRoute *router.Route, ...) error
- func HandleRequestBlockLocator(context RequestBlockLocatorContext, incomingRoute *router.Route, ...) error
- func HandleRequestIBDBlocks(context RequestIBDBlocksContext, incomingRoute *router.Route, ...) error
- type HandleIBDContext
- type RequestBlockLocatorContext
- type RequestIBDBlocksContext
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HandleIBD ¶
func HandleIBD(context HandleIBDContext, incomingRoute *router.Route, outgoingRoute *router.Route, peer *peerpkg.Peer) error
HandleIBD waits for IBD start and handles it when IBD is triggered for this peer
func HandleRequestBlockLocator ¶
func HandleRequestBlockLocator(context RequestBlockLocatorContext, incomingRoute *router.Route, outgoingRoute *router.Route) error
HandleRequestBlockLocator handles getBlockLocator messages
func HandleRequestIBDBlocks ¶
func HandleRequestIBDBlocks(context RequestIBDBlocksContext, incomingRoute *router.Route, outgoingRoute *router.Route) error
HandleRequestIBDBlocks handles getBlocks messages
Types ¶
type HandleIBDContext ¶
type HandleIBDContext interface { DAG() *blockdag.BlockDAG OnNewBlock(block *util.Block) error StartIBDIfRequired() FinishIBD() }
HandleIBDContext is the interface for the context needed for the HandleIBD flow.
type RequestBlockLocatorContext ¶
RequestBlockLocatorContext is the interface for the context needed for the HandleRequestBlockLocator flow.
type RequestIBDBlocksContext ¶
RequestIBDBlocksContext is the interface for the context needed for the HandleRequestIBDBlocks flow.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.