mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
primitives: use alloy DEV_GENESIS_HASH constant (#11849)
This commit is contained in:
1
Cargo.lock
generated
1
Cargo.lock
generated
@ -8032,6 +8032,7 @@ name = "reth-optimism-chainspec"
|
||||
version = "1.1.0"
|
||||
dependencies = [
|
||||
"alloy-chains",
|
||||
"alloy-consensus",
|
||||
"alloy-genesis",
|
||||
"alloy-primitives",
|
||||
"derive_more 1.0.0",
|
||||
|
||||
@ -7,7 +7,7 @@ use alloy_primitives::{address, b256, Address, BlockNumber, B256, U256};
|
||||
use alloy_trie::EMPTY_ROOT_HASH;
|
||||
use derive_more::From;
|
||||
|
||||
use alloy_consensus::constants::MAINNET_GENESIS_HASH;
|
||||
use alloy_consensus::constants::{DEV_GENESIS_HASH, MAINNET_GENESIS_HASH};
|
||||
use reth_ethereum_forks::{
|
||||
ChainHardforks, DisplayHardforks, EthereumHardfork, EthereumHardforks, ForkCondition,
|
||||
ForkFilter, ForkFilterKey, ForkHash, ForkId, Hardfork, Hardforks, Head, DEV_HARDFORKS,
|
||||
@ -18,7 +18,7 @@ use reth_network_peers::{
|
||||
};
|
||||
use reth_primitives_traits::{
|
||||
constants::{
|
||||
DEV_GENESIS_HASH, EIP1559_INITIAL_BASE_FEE, EMPTY_WITHDRAWALS, ETHEREUM_BLOCK_GAS_LIMIT,
|
||||
EIP1559_INITIAL_BASE_FEE, EMPTY_WITHDRAWALS, ETHEREUM_BLOCK_GAS_LIMIT,
|
||||
HOLESKY_GENESIS_HASH, SEPOLIA_GENESIS_HASH,
|
||||
},
|
||||
Header, SealedHeader,
|
||||
|
||||
@ -25,6 +25,7 @@ reth-optimism-forks.workspace = true
|
||||
alloy-chains.workspace = true
|
||||
alloy-genesis.workspace = true
|
||||
alloy-primitives.workspace = true
|
||||
alloy-consensus.workspace = true
|
||||
|
||||
# op
|
||||
op-alloy-rpc-types.workspace = true
|
||||
|
||||
@ -3,10 +3,10 @@
|
||||
use alloc::sync::Arc;
|
||||
|
||||
use alloy_chains::Chain;
|
||||
use alloy_consensus::constants::DEV_GENESIS_HASH;
|
||||
use alloy_primitives::U256;
|
||||
use reth_chainspec::{once_cell_set, BaseFeeParams, BaseFeeParamsKind, ChainSpec};
|
||||
use reth_optimism_forks::DEV_HARDFORKS;
|
||||
use reth_primitives_traits::constants::DEV_GENESIS_HASH;
|
||||
|
||||
use crate::{LazyLock, OpChainSpec};
|
||||
|
||||
|
||||
@ -106,10 +106,6 @@ pub const SEPOLIA_GENESIS_HASH: B256 =
|
||||
pub const HOLESKY_GENESIS_HASH: B256 =
|
||||
b256!("b5f7f912443c940f21fd611f12828d75b534364ed9e95ca4e307729a4661bde4");
|
||||
|
||||
/// Testnet genesis hash: `0x2f980576711e3617a5e4d83dd539548ec0f7792007d505a3d2e9674833af2d7c`
|
||||
pub const DEV_GENESIS_HASH: B256 =
|
||||
b256!("2f980576711e3617a5e4d83dd539548ec0f7792007d505a3d2e9674833af2d7c");
|
||||
|
||||
/// Keccak256 over empty array: `0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470`
|
||||
pub const KECCAK_EMPTY: B256 =
|
||||
b256!("c5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470");
|
||||
|
||||
@ -39,7 +39,7 @@ pub use block::{
|
||||
};
|
||||
#[cfg(feature = "reth-codec")]
|
||||
pub use compression::*;
|
||||
pub use constants::{DEV_GENESIS_HASH, HOLESKY_GENESIS_HASH, KECCAK_EMPTY, SEPOLIA_GENESIS_HASH};
|
||||
pub use constants::{HOLESKY_GENESIS_HASH, KECCAK_EMPTY, SEPOLIA_GENESIS_HASH};
|
||||
pub use receipt::{
|
||||
gas_spent_by_transactions, Receipt, ReceiptWithBloom, ReceiptWithBloomRef, Receipts,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user