Skip to main content

MAX_BLOCK_REORG_HEIGHT

Constant MAX_BLOCK_REORG_HEIGHT 

Source
pub const MAX_BLOCK_REORG_HEIGHT: u32 = 1000;
Expand description

The maximum chain reorganisation height.

This threshold determines the maximum length of the best non-finalized chain. Once the chain grows past this height, Zebra finalizes its oldest blocks; deeper reorganisations are outside Zebra’s rollback window.

This is a local-only node policy; it is not part of consensus. The window is sized as a defence-in-depth measure against sustained consensus splits.

ZIP 218 keeps this block count unchanged, so it covers about 20.8 hours before NU7 and about 6.9 hours of 25-second blocks after it.