Skip to main content

MAX_REJECTED_EARLY_BLOCKS

Constant MAX_REJECTED_EARLY_BLOCKS 

Source
pub(crate) const MAX_REJECTED_EARLY_BLOCKS: usize = MAX_EARLY_RELAY_ALLOWANCES; // 1_000usize
Expand description

The maximum number of blocks from peers that negotiated compact block relay that a block downloader remembers as invalid, after they passed the checks that authenticate them for early relay.

Each of these blocks has valid proof of work at the expected difficulty, as a child of the best tip, and the limit bounds their memory on networks where that proof of work is cheap. It is the same as MAX_EARLY_RELAY_ALLOWANCES, so forgetting a block takes at least as many later failures as forgetting an allowance. Each hash takes about 50 bytes.