pub const MAX_NON_FINALIZED_INDEX_ENTRIES_TEST_NETWORKS: usize = 2_000_000;Expand description
The maximum total number of index entries in all non-finalized chains on test networks.
Test networks have a lower limit than Mainnet, because they keep ten times as many forks.
Chains index their blocks, transactions, transparent outputs and spends, and nullifiers, at about 1 KB per entry, and count the blocks they share with other chains once. When the total passes this limit, Zebra drops the chain with the lowest work, but keeps the best chain and the most recently inserted chain.
If the best and newest chains alone pass the limit, Zebra also finalizes blocks early, but keeps at least 100 blocks.