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
PeersManager
instance.
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.
- INBOUND_
IP_ THROTTLE_ DURATION - A temporary timeout for ips on incoming connection attempts.