pub const MAX_QUEUED_BLOCKS_PER_HEIGHT: usize = 4;Expand description
The maximum number of queued blocks at any one height.
This value is a tradeoff between:
- rejecting bad blocks: if we queue more blocks, we need fewer network retries, but use a bit more CPU when verifying,
- avoiding a memory DoS: if we queue fewer blocks, we use less memory.
The verifier also limits the memory used by the queued blocks at all heights.