Skip to main content

MAX_QUEUED_BYTES

Constant MAX_QUEUED_BYTES 

Source
const MAX_QUEUED_BYTES: usize = _; // 4_000_000_000usize
Expand description

The maximum estimated memory used by the blocks queued for checkpoint verification, in bytes.

This fits 2,000 full-size blocks, twice the syncer’s default checkpoint lookahead, so it only limits syncing when a large lookahead is configured or peers send blocks Zebra can’t use yet.