package
0.0.0-20220616152218-3da4c06c590a
Repository: https://github.com/astra-net/astra-network.git
Documentation: pkg.go.dev
# Packages
No description provided by the author
# Functions
CompareBlockByHash compares two block by hash, it will be used in sort the blocks.
CompareSyncPeerConfigByblockHashes compares two SyncPeerConfig by blockHashes.
CreateStateSync returns the implementation of StateSyncInterface interface.
CreateTestSyncPeerConfig used for testing.
GetHowManyMaxConsensus will get the most common blocks and the first such blockID.
GetSyncingPort returns the syncing port.
RlpDecodeBlockOrBlockWithSig decode payload to types.Block or BlockWithSig.
# Constants
Constants for syncing.
after cutting off a number of connected peers, the result number of peers shall be between numPeersLowBound and numPeersHighBound.
Constants for syncing.
Constants for syncing.
maximum size for one query of block hashes.
# Variables
Errors ...
Errors ...
Errors ...
Errors ...
Errors ...
Errors ...
Errors ...
Errors ...
Errors ...
# Structs
BlockWithSig the serialization structure for request DownloaderRequest_BLOCKWITHSIG The block is encoded as block + commit signature.
StateSync is the struct that implements StateSyncInterface.
SyncBlockTask is the task struct to sync a specific block.
No description provided by the author
SyncConfig contains an array of SyncPeerConfig.
SyncPeerConfig is peer config to sync.