package
0.0.0-20231025030425-6ec8c495a25d
Repository: https://github.com/hpb-project/go-hpb.git
Documentation: pkg.go.dev

# Functions

HandleBlockBodiesMsg deal received BlockBodiesMsg.
HandleBlockHeadersMsg deal received BlockHeadersMsg.
HandleGetBlockBodiesMsg deal received GetBlockBodiesMsg.
HandleGetBlockHeadersMsg deal received GetBlockHeadersMsg.
HandleGetNodeDataMsg deal received GetNodeDataMsg.
HandleGetReceiptsMsg deal received GetReceiptsMsg.
HandleNewBlockHashesMsg deal received NewBlockHashesMsg.
HandleNewBlockMsg deal received NewBlockMsg.
HandleNewBlockMsg deal received NewBlockMsg.
HandleNodeDataMsg deal received NodeDataMsg.
HandleReceiptsMsg deal received ReceiptsMsg.
HandleTxMsg deal received TxMsg.
InstanceSynCtrl returns the singleton of SynCtrl.
NewFakePeer creates a new mock syncer peer with the given data sources.
NewPublicSyncerAPI create a new PublicSyncerAPI.
No description provided by the author
No description provided by the author
No description provided by the author

# Variables

Amount of blocks to be fetched per retrieval request.
Amount of block bodies to be fetched per retrieval request.
Maximum chain reorganisation.
Amount of hashes to be fetched per retrieval request.
Amount of block headers to be fetched per retrieval request.
Amount of transaction receipts to allow fetching per request.
Number of header fetches to need for a skeleton assembly.
Amount of node state values to allow fetching per request.

# Structs

No description provided by the author
No description provided by the author
FakePeer is a mock syncer peer that operates on a local database instance instead of being an actual live node.
.
PublicSyncerAPI provides an API which gives information about the current synchronisation status.
No description provided by the author
No description provided by the author
No description provided by the author
SyncingResult provides information about the current synchronisation status for this node.
SyncStatusSubscription represents a syncing subscription.
No description provided by the author

# Interfaces

BlockChain encapsulates functions required to sync a (full or fast) blockchain.
LightChain encapsulates functions required to synchronise a light chain.
LightPeer encapsulates the methods required to synchronise with a remote light peer.
Peer encapsulates the methods required to synchronise with a remote full peer.