Skip to main content

MAX_NON_FINALIZED_INDEX_ENTRIES

Constant MAX_NON_FINALIZED_INDEX_ENTRIES 

Source
pub const MAX_NON_FINALIZED_INDEX_ENTRIES: usize = 6_200_000;
Expand description

The maximum total number of index entries in all non-finalized chains on Mainnet.

Zebra counts entries, drops chains, and finalizes blocks early as it does for MAX_NON_FINALIZED_INDEX_ENTRIES_TEST_NETWORKS.

A block filled with the smallest transparent outputs has about 62,000 entries, so this is the size of MIN_NON_FINALIZED_BLOCKS_OVER_INDEX_LIMIT of the densest blocks, which use about 5 GB. A lower limit would not save memory, because Zebra keeps that many blocks anyway.