Skip to main content Crate snarkos_node_router Copy item path Source pub use snarkos_node_router_messages as messages;expect_message A macro unwrapping the expected handshake message or returning an error for unexpected messages. Cache InnerRouter Router The router keeps track of connected and connecting peers.
The actual network communication happens in Inbound/Outbound,
which is implemented by Validator, Prover, and Client. DEFAULT_NODE_PORT The default port used by the router. MAX_PEERS_TO_SEND The max number of peers to send in a PeerResponse message. Heartbeat Inbound Outbound Routing max A helper function to compute the maximum of two numbers.
See Rust issue 92391: https://github.com/rust-lang/rust/issues/92391.