Crate snarkos_node_sync

Source

Re-exports§

pub use snarkos_node_sync_communication_service as communication_service;
pub use snarkos_node_sync_locators as locators;

Structs§

BlockRequestInfo
Information about a block request (used for the REST API).
BlockRequestsSummary
Summary of completed all in-flight requests.
BlockSync
A struct that keeps track of synchronizing blocks with other nodes.
Ping
Manages sending Ping messages to all connected peers.

Constants§

BLOCK_REQUEST_BATCH_DELAY
The time nodes wait between issuing batches of block requests to avoid triggering spam detection.
DUMMY_SELF_IP
This is a dummy IP address that is used to represent the local node. Note: This here does not need to be a real IP address, but it must be unique/distinct from all other connections.
MAX_BLOCKS_BEHIND
The maximum number of blocks tolerated before the primary is considered behind its peers.
REDUNDANCY_FACTOR

Type Aliases§

BlockRequestBatch
PrepareSyncRequest
A tuple of the block hash (optional), previous block hash (optional), and the number of sync IPS to request from.
SyncRequest
A tuple of the block hash (optional), previous block hash (optional), and sync IPs.