primitives: use alloy MAINNET_GENESIS_HASH constant (#11848)

This commit is contained in:
Thomas Coratger
2024-10-17 21:44:04 +02:00
committed by GitHub
parent 52848a352a
commit a6c8bda029
14 changed files with 29 additions and 33 deletions

View File

@ -14,6 +14,8 @@ reth-eth-wire.workspace = true
reth-ecies.workspace = true
reth-network-peers.workspace = true
alloy-consensus.workspace = true
secp256k1 = { workspace = true, features = ["global-context", "rand-std", "recovery"] }
futures.workspace = true

View File

@ -8,6 +8,7 @@
use std::time::Duration;
use alloy_consensus::constants::MAINNET_GENESIS_HASH;
use futures::StreamExt;
use reth_chainspec::{Chain, MAINNET};
use reth_discv4::{DiscoveryUpdate, Discv4, Discv4ConfigBuilder, DEFAULT_DISCOVERY_ADDRESS};
@ -17,7 +18,7 @@ use reth_eth_wire::{
};
use reth_network::config::rng_secret_key;
use reth_network_peers::{mainnet_nodes, pk2id, NodeRecord};
use reth_primitives::{EthereumHardfork, Head, MAINNET_GENESIS_HASH};
use reth_primitives::{EthereumHardfork, Head};
use secp256k1::{SecretKey, SECP256K1};
use std::sync::LazyLock;
use tokio::net::TcpStream;