Crate snarkos_network[−][src]
Re-exports
pub use config::*;
pub use errors::*;
pub use inbound::*;
pub use message::*;
pub use node::*;
pub use peers::*;
pub use sync::*;
pub use topology::*;
Modules
Structs
Constants
The maximum amount of time allowed to process a single batch of sync blocks. It should be aligned
with MAX_BLOCK_SYNC_COUNT
.
The maximum amount of time in which a handshake with a bootnode can conclude before dropping the
connection; it should be no greater than the peer_sync_interval
.
The noise handshake pattern.
The maximum amount of time in which a handshake with a regular node can conclude before dropping the
connection; it should be no greater than the peer_sync_interval
.
The pre-shared key for the noise handshake.
The depth of the common inbound channel.
The maximum number of block hashes that can be requested or provided in a single batch.
The maximum size of a message that can be transmitted in the network.
The amount of time after which a peer will be considered inactive an disconnected from if they have not sent any messages in the meantime.
The spec-compliant size of the noise buffer.
The spec-compliant size of the noise tag field.
The depth of the per-connection outbound channels.
The version of the network protocol; it can be incremented in order to force users to update. FIXME: probably doesn’t need to be a u64, could also be more informative than just a number
The maximum number of peers shared at once in response to a GetPeers
message.