Skip to content

eth::EthPeerQueueConfig

Bounded peer producer queue policy.

#include <eth_peer_queue.hpp>

Public Attributes

Name
size_t max_pending_peers
Maximum peers waiting in the scheduler queue.
size_t max_disconnect_requeues
Maximum requeues after disconnect feedback before a peer is considered flaky.
std::chrono::steady_clock::duration too_many_peers_backoff
How long a peer that reports TooManyPeers is suppressed.
size_t cache_peer_start_offset
Rotate cached peers by this many entries before dial-slot spreading.

Public Attributes Documentation

variable max_pending_peers

size_t max_pending_peers = 1024;

Maximum peers waiting in the scheduler queue.

Active dial attempts do not count against this limit. When the pending queue is full, newly produced peers are dropped deterministically.

variable max_disconnect_requeues

size_t max_disconnect_requeues = 3;

Maximum requeues after disconnect feedback before a peer is considered flaky.

variable too_many_peers_backoff

std::chrono::steady_clock::duration too_many_peers_backoff = std::chrono::minutes(30);

How long a peer that reports TooManyPeers is suppressed.

variable cache_peer_start_offset

size_t cache_peer_start_offset = 0;

Rotate cached peers by this many entries before dial-slot spreading.


Updated on 2026-06-05 at 17:22:18 -0700