package
1.0.0
Repository: https://github.com/brics18/bricsd.git
Documentation: pkg.go.dev

# Functions

HandleIBD handles IBD.
HandleIBDBlockLocator listens to appmessage.MsgIBDBlockLocator messages and sends the highest known block that's in the selected parent chain of `targetHash` to the requesting peer.
HandleIBDBlockRequests listens to appmessage.MsgRequestRelayBlocks messages and sends their corresponding blocks to the requesting peer.
HandlePruningPointAndItsAnticoneRequests listens to appmessage.MsgRequestPruningPointAndItsAnticone messages and sends the pruning point and its anticone to the requesting peer.
HandlePruningPointProofRequests listens to appmessage.MsgRequestPruningPointProof messages and sends the pruning point proof to the requesting peer.
HandleRelayBlockRequests listens to appmessage.MsgRequestRelayBlocks messages and sends their corresponding blocks to the requesting peer.
HandleRelayInvs listens to appmessage.MsgInvRelayBlock messages, requests their corresponding blocks if they are missing, adds them to the DAG and propagates them to the rest of the network.
HandleRequestAnticone handles RequestAnticone messages.
HandleRequestBlockLocator handles getBlockLocator messages.
HandleRequestHeaders handles RequestHeaders messages.
HandleRequestIBDChainBlockLocator handles getBlockLocator messages.
HandleRequestPruningPointUTXOSet listens to appmessage.MsgRequestPruningPointUTXOSet messages and sends the pruning point UTXO set and block body.
SendVirtualSelectedParentInv sends a peer the selected parent hash of the virtual.

# Interfaces

HandleIBDBlockLocatorContext is the interface for the context needed for the HandleIBDBlockLocator flow.
HandleIBDBlockRequestsContext is the interface for the context needed for the HandleIBDBlockRequests flow.
HandleRequestPruningPointUTXOSetContext is the interface for the context needed for the HandleRequestPruningPointUTXOSet flow.
IBDContext is the interface for the context needed for the HandleIBD flow.
PruningPointAndItsAnticoneRequestsContext is the interface for the context needed for the HandlePruningPointAndItsAnticoneRequests flow.
PruningPointProofRequestsContext is the interface for the context needed for the HandlePruningPointProofRequests flow.
RelayBlockRequestsContext is the interface for the context needed for the HandleRelayBlockRequests flow.
RelayInvsContext is the interface for the context needed for the HandleRelayInvs flow.
RequestAnticoneContext is the interface for the context needed for the HandleRequestHeaders flow.
RequestBlockLocatorContext is the interface for the context needed for the HandleRequestBlockLocator flow.
RequestHeadersContext is the interface for the context needed for the HandleRequestHeaders flow.
RequestIBDChainBlockLocatorContext is the interface for the context needed for the HandleRequestBlockLocator flow.
SendVirtualSelectedParentInvContext is the interface for the context needed for the SendVirtualSelectedParentInv flow.