Skip to main content

MAX_INVALIDATED_BLOCKS

Constant MAX_INVALIDATED_BLOCKS 

Source
pub const MAX_INVALIDATED_BLOCKS: usize = 100;
Expand description

The maximum number of invalidated block records.

Each record can hold a chain of invalidated descendants up to the rollback window (MAX_BLOCK_REORG_HEIGHT) deep, so this limits the memory use, in the worst case, to around: 100 entries * up to 1000 blocks * 2 MB per block = 200 GB