Constant zebra_state::constants::MAX_BLOCK_REORG_HEIGHT

source ·
pub const MAX_BLOCK_REORG_HEIGHT: u32 = _; // 99u32
Expand description

The maximum chain reorganisation height.

This threshold determines the maximum length of the best non-finalized chain. Larger reorganisations would allow double-spends of coinbase transactions.

This threshold uses the relevant chain for the block being verified by the non-finalized state.

For the best chain, coinbase spends are only allowed from blocks at or below the finalized tip. For other chains, coinbase spends can use outputs from early non-finalized blocks, or finalized blocks. But if that chain becomes the best chain, all non-finalized blocks past the MAX_BLOCK_REORG_HEIGHT will be finalized. This includes all mature coinbase outputs.