primitives: use alloy EMPTY_ constants (#11852)

This commit is contained in:
Thomas Coratger
2024-10-18 10:53:21 +02:00
committed by GitHub
parent 0c70f6bd35
commit 5859f93c56
6 changed files with 12 additions and 16 deletions

View File

@ -1,6 +1,5 @@
//! Ethereum protocol-related constants
use alloy_consensus::EMPTY_ROOT_HASH;
use alloy_primitives::{address, b256, Address, B256, U256};
use core::time::Duration;
@ -112,15 +111,6 @@ pub const OP_SYSTEM_TX_FROM_ADDR: Address = address!("deaddeaddeaddeaddeaddeadde
/// To address from Optimism system txs: `0x4200000000000000000000000000000000000015`
pub const OP_SYSTEM_TX_TO_ADDR: Address = address!("4200000000000000000000000000000000000015");
/// Transactions root of empty receipts set.
pub const EMPTY_RECEIPTS: B256 = EMPTY_ROOT_HASH;
/// Transactions root of empty transactions set.
pub const EMPTY_TRANSACTIONS: B256 = EMPTY_ROOT_HASH;
/// Withdrawals root of empty withdrawals set.
pub const EMPTY_WITHDRAWALS: B256 = EMPTY_ROOT_HASH;
/// 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