mirror of
https://github.com/paradigmxyz/reth.git
synced 2026-01-10 07:48:19 -05:00
fix: properly compute genesis hash (#18300)
This commit is contained in:
@@ -9,8 +9,8 @@ use alloc::{boxed::Box, sync::Arc, vec::Vec};
|
||||
use alloy_chains::{Chain, NamedChain};
|
||||
use alloy_consensus::{
|
||||
constants::{
|
||||
DEV_GENESIS_HASH, EMPTY_WITHDRAWALS, HOLESKY_GENESIS_HASH, HOODI_GENESIS_HASH,
|
||||
MAINNET_GENESIS_HASH, SEPOLIA_GENESIS_HASH,
|
||||
EMPTY_WITHDRAWALS, HOLESKY_GENESIS_HASH, HOODI_GENESIS_HASH, MAINNET_GENESIS_HASH,
|
||||
SEPOLIA_GENESIS_HASH,
|
||||
},
|
||||
Header,
|
||||
};
|
||||
@@ -208,10 +208,7 @@ pub static DEV: LazyLock<Arc<ChainSpec>> = LazyLock::new(|| {
|
||||
let hardforks = DEV_HARDFORKS.clone();
|
||||
ChainSpec {
|
||||
chain: Chain::dev(),
|
||||
genesis_header: SealedHeader::new(
|
||||
make_genesis_header(&genesis, &hardforks),
|
||||
DEV_GENESIS_HASH,
|
||||
),
|
||||
genesis_header: SealedHeader::seal_slow(make_genesis_header(&genesis, &hardforks)),
|
||||
genesis,
|
||||
paris_block_and_final_difficulty: Some((0, U256::from(0))),
|
||||
hardforks: DEV_HARDFORKS.clone(),
|
||||
@@ -1603,7 +1600,7 @@ Post-merge hard forks (timestamp based):
|
||||
&DEV,
|
||||
&[(
|
||||
Head { number: 0, ..Default::default() },
|
||||
ForkId { hash: ForkHash([0x45, 0xb8, 0x36, 0x12]), next: 0 },
|
||||
ForkId { hash: ForkHash([0x0b, 0x1a, 0x4e, 0xf7]), next: 0 },
|
||||
)],
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user