Re-exports§
pub use snarkos_node_sync_communication_service as communication_service;
pub use snarkos_node_sync_locators as locators;
Structs§
- Block
Request Info - Information about a block request (used for the REST API).
- Block
Requests Summary - Summary of completed all in-flight requests.
- Block
Sync - 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§
- Block
Request Batch - 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.