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§

BlockSync
A struct that keeps track of the current block sync state.

Enums§

BlockSyncMode

Constants§

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§

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.