Module zebra_network::constants
source · Expand description
Definitions of Zebra network constants, including:
- network protocol versions,
- network protocol user agents,
- peer address limits,
- peer connection limits, and
- peer connection timeouts.
Structs§
- The minimum network protocol version accepted by this crate for each network, represented as a network upgrade.
- OS-specific error when the port attempting to be opened is already in use.
Constants§
- The fraction of addresses Zebra sends in response to a
Peers
request. - The maximum time difference for two address book changes to be considered concurrent.
- The Zcash network protocol version implemented by this crate, and advertised during connection setup.
- The default peer address crawler interval.
- The default maximum number of peer connections Zebra will keep for a given IP address before it drops any additional peer connections with that IP.
- The default peerset target size.
- The timeout for DNS lookups.
- The decay time for the EWMA response time metric used for load balancing.
- The default RTT estimate for peer responses.
- The number of GetAddr requests sent when crawling for new peers.
- The timeout for connections and handshakes when connecting to new peers.
- Regular interval for sending keepalive
Ping
messages to each connected peer. - A multiplier used to calculate the inbound connection limit for the peer set,
- Zebra rotates its peer inventory registry every time this interval elapses.
- The maximum number of addresses Zebra will keep in its address book.
- The maximum number of addresses allowed in an
addr
oraddrv2
message. - The maximum probability of dropping a peer connection when it receives an
Overloaded
error. - The maximum duration since a peer was last seen to consider it reachable.
- The maximum number of addresses in the peer disk cache.
- The maximum duration since a peer was last seen to consider reconnecting to it.
- The minimum time between successful inbound peer connections, implemented by
peer_set::initialize::accept_inbound_connections
. - The minimum time between failed inbound peer connections, implemented by
peer_set::initialize::accept_inbound_connections
. - The minimum time between outbound peer connections, implemented by
CandidateSet::next
. - The minimum probability of dropping a peer connection when it receives an
Overloaded
error. - The minimum time between successive calls to
CandidateSet::update
. - We expect to receive a message from a live peer at least once in this time duration.
- The minimum interval between logging peer set status updates.
- The number of nanoseconds in one second.
- A multiplier used to calculate the outbound connection limit for the peer set,
- The duration it takes for the drop probability of an overloaded connection to reach
MIN_OVERLOAD_DROP_PROBABILITY
. - The buffer size for the peer set.
- The maximum number of peers we will add to the address book after each
getaddr
request. - The peer address disk cache update interval.
- The combined timeout for all the requests in
CandidateSet::update
. - The timeout for sending a message to a remote peer, and receiving a response from a remote peer.
- Truncate timestamps in outbound address messages to this time interval.