mirror of
https://github.com/paradigmxyz/reth.git
synced 2026-04-08 03:01:12 -04:00
perf: reuse genesis hash (#1271)
This commit is contained in:
@@ -130,12 +130,13 @@ impl Debug for Status {
|
||||
// <https://etherscan.io/block/0>
|
||||
impl Default for Status {
|
||||
fn default() -> Self {
|
||||
let mainnet_genesis = MAINNET.genesis_hash();
|
||||
Status {
|
||||
version: EthVersion::Eth67 as u8,
|
||||
chain: Chain::Named(ethers_core::types::Chain::Mainnet),
|
||||
total_difficulty: U256::from(17_179_869_184u64),
|
||||
blockhash: MAINNET.genesis_hash(),
|
||||
genesis: MAINNET.genesis_hash(),
|
||||
blockhash: mainnet_genesis,
|
||||
genesis: mainnet_genesis,
|
||||
forkid: Hardfork::Frontier
|
||||
.fork_id(&MAINNET)
|
||||
.expect("The Frontier hardfork should always exist"),
|
||||
|
||||
Reference in New Issue
Block a user