Skip to main content

MAX_FETCH_QUEUE

Constant MAX_FETCH_QUEUE 

Source
pub const MAX_FETCH_QUEUE: usize = 131_072;
Expand description

Hard upper bound on the number of keys held in fetch_queue.

fetch_queue is fed only by enqueue_fetch, which is reached after a key passes quorum verification in run_verification_cycle — attacker junk keys (no real holder) fail quorum and never reach this stage, so the bounded-and-fair pending_verify upstream is the primary protection. This global cap remains as a defence-in-depth memory backstop and is dropped (consistent with the existing cross-queue-dedup no-op contract of enqueue_fetch) when full.