mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
primitives: rm alloy HOLESKY_GENESIS_HASH reexport (#12562)
This commit is contained in:
@ -12,7 +12,9 @@ use alloy_primitives::{address, b256, Address, BlockNumber, B256, U256};
|
||||
use derive_more::From;
|
||||
|
||||
use alloy_consensus::{
|
||||
constants::{DEV_GENESIS_HASH, MAINNET_GENESIS_HASH, SEPOLIA_GENESIS_HASH},
|
||||
constants::{
|
||||
DEV_GENESIS_HASH, HOLESKY_GENESIS_HASH, MAINNET_GENESIS_HASH, SEPOLIA_GENESIS_HASH,
|
||||
},
|
||||
Header,
|
||||
};
|
||||
use alloy_eips::eip1559::ETHEREUM_BLOCK_GAS_LIMIT;
|
||||
@ -24,7 +26,7 @@ use reth_network_peers::{
|
||||
base_nodes, base_testnet_nodes, holesky_nodes, mainnet_nodes, op_nodes, op_testnet_nodes,
|
||||
sepolia_nodes, NodeRecord,
|
||||
};
|
||||
use reth_primitives_traits::{constants::HOLESKY_GENESIS_HASH, SealedHeader};
|
||||
use reth_primitives_traits::SealedHeader;
|
||||
use reth_trie_common::root::state_root_ref_unhashed;
|
||||
|
||||
use crate::{constants::MAINNET_DEPOSIT_CONTRACT, once_cell_set, EthChainSpec, LazyLock, OnceLock};
|
||||
|
||||
@ -1,7 +1,5 @@
|
||||
//! Ethereum protocol-related constants
|
||||
|
||||
use alloy_primitives::{b256, B256};
|
||||
|
||||
/// Gas units, for example [`GIGAGAS`].
|
||||
pub mod gas_units;
|
||||
pub use gas_units::{GIGAGAS, KILOGAS, MEGAGAS};
|
||||
@ -12,10 +10,6 @@ pub const RETH_CLIENT_VERSION: &str = concat!("reth/v", env!("CARGO_PKG_VERSION"
|
||||
/// Minimum gas limit allowed for transactions.
|
||||
pub const MINIMUM_GAS_LIMIT: u64 = 5000;
|
||||
|
||||
/// Holesky genesis hash: `0xb5f7f912443c940f21fd611f12828d75b534364ed9e95ca4e307729a4661bde4`
|
||||
pub const HOLESKY_GENESIS_HASH: B256 =
|
||||
b256!("b5f7f912443c940f21fd611f12828d75b534364ed9e95ca4e307729a4661bde4");
|
||||
|
||||
/// 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
|
||||
|
||||
Reference in New Issue
Block a user