reth::core::primitives::constants

Constant BEACON_CONSENSUS_REORG_UNWIND_DEPTH

pub const BEACON_CONSENSUS_REORG_UNWIND_DEPTH: u64 = 3; // 3u64
Expand description

The number of blocks to unwind during a reorg that already became a part of canonical chain.

In reality, the node can end up in this particular situation very rarely. It would happen only if the node process is abruptly terminated during ongoing reorg and doesn’t boot back up for long period of time.

Unwind depth of 3 blocks significantly reduces the chance that the reorged block is kept in the database.