mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
primitives: use alloy MAINNET_GENESIS_HASH constant (#11848)
This commit is contained in:
@ -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
|
||||
|
||||
@ -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;
|
||||
|
||||
Reference in New Issue
Block a user