reth_network::transactions::constants::tx_fetcher

Constant DEFAULT_BUDGET_FIND_IDLE_FALLBACK_PEER

Source
pub const DEFAULT_BUDGET_FIND_IDLE_FALLBACK_PEER: usize = _; // 711usize
Expand description

Default budget for finding an idle fallback peer for any hash pending fetch, when said search is budget constrained.

Default is a sixth of DEFAULT_MAX_COUNT_PENDING_FETCH, which defaults to 12 800 hashes (the ideal max number of hashes pending fetch), divided by DEFAULT_MAX_COUNT_FALLBACK_PEERS, which defaults to 3 peers (the depth of the search), so a search breadth of 711 lru hashes in the pending hashes cache.