Re-exports§
pub use snarkos_node_router_messages as messages;
Macros§
- expect_
message - A macro unwrapping the expected handshake message or returning an error for unexpected messages.
Structs§
- Cache
- Candidate
Peer - A candidate peer.
- Connected
Peer - A fully connected peer.
- Connecting
Peer - A connecting peer.
- Inner
Router - Resolver
- The resolver contains additional reverse maps for peers which are not available by default to the implementors of PeerPoolHandling (which already contains maps from the peer’s listening address to their various components).
- 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.
Enums§
Constants§
- DEFAULT_
NODE_ PORT - The default port used by the router.
- MAX_
PEERS_ TO_ SEND - The max number of peers to send in a
PeerResponsemessage.
Traits§
Functions§
- bootstrap_
peers - Returns the list of bootstrap peers.
- max
- A helper function to compute the maximum of two numbers. See Rust issue 92391: https://github.com/rust-lang/rust/issues/92391.