Skip to content

Commit

Permalink
eips: rm BEACON_CONSENSUS_REORG_UNWIND_DEPTH (#1556)
Browse files Browse the repository at this point in the history
eips: rm BEACON_CONSENSUS_REORG_UNWIND_DEPTH
  • Loading branch information
tcoratger authored Oct 24, 2024
1 parent 7cd817a commit b621af0
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions crates/eips/src/merge.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,16 +26,6 @@ pub const EPOCH_DURATION: Duration = Duration::from_secs(EPOCH_DURATION_SECS);
/// The default block nonce in the beacon consensus
pub const BEACON_NONCE: u64 = 0u64;

/// 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.
pub const BEACON_CONSENSUS_REORG_UNWIND_DEPTH: u64 = 3;

/// Max seconds from current time allowed for blocks, before they're considered future blocks.
///
/// This is only used when checking whether or not the timestamp for pre-merge blocks is in the
Expand Down

0 comments on commit b621af0

Please sign in to comment.