Expand description
Configuration for peering.
Structs§
- Connections
Config - Tracks stats about connected nodes
- Peer
Backoff Durations - The durations to use when a backoff should be applied to a peer.
- Peers
Config - Config type for initiating a
PeersManagerinstance.
Constants§
- DEFAULT_
MAX_ COUNT_ CONCURRENT_ OUTBOUND_ DIALS - Maximum number of available slots for concurrent outgoing dials.
- DEFAULT_
MAX_ COUNT_ PEERS_ INBOUND - Maximum number of available slots for inbound sessions.
- DEFAULT_
MAX_ COUNT_ PEERS_ OUTBOUND - Maximum number of available slots for outbound sessions.
- DEFAULT_
PEER_ ROTATION_ INTERVAL - Default mean interval for the jittered peer rotation timer.
- INBOUND_
IP_ THROTTLE_ DURATION - A temporary timeout for ips on incoming connection attempts.
- PEER_
ROTATION_ MIN_ UPTIME - Minimum connection uptime before a peer is eligible for rotation eviction.