Skip to main content

MAX_INBOUND_CONCURRENCY_PER_PEER

Constant MAX_INBOUND_CONCURRENCY_PER_PEER 

Source
pub const MAX_INBOUND_CONCURRENCY_PER_PEER: usize = 5;
Expand description

The maximum number of concurrent inbound download tasks attributable to a single advertising peer.

Caps how many slots of MAX_INBOUND_CONCURRENCY one peer’s Inv advertisements can occupy, so a single peer cannot saturate the global queue with fake txids and deny gossip-path mempool admission for honest peers. See GHSA-4fc2-h7jh-287c. Crawler-driven and locally-pushed transactions have no source peer and are not counted against the cap.