Re-exports§
pub use snarkos_node_sync_communication_service as communication_service;
pub use snarkos_node_sync_locators as locators;
Structs§
- Block
Sync - A struct that keeps track of the current block sync state.
Enums§
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§
- Prepare
Sync Request - A tuple of the block hash (optional), previous block hash (optional), and the number of sync IPS to request from.
- Sync
Request - A tuple of the block hash (optional), previous block hash (optional), and sync IPs.