mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
refactor(net): move node record constants to network-peers crate (#9161)
This commit is contained in:
@ -12,6 +12,7 @@ reth-chainspec.workspace = true
|
||||
reth-discv4 = { workspace = true, features = ["test-utils"] }
|
||||
reth-network = { workspace = true, features = ["test-utils"] }
|
||||
reth-network-api.workspace = true
|
||||
reth-network-peers.workspace = true
|
||||
reth-primitives.workspace = true
|
||||
reth-tracing.workspace = true
|
||||
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
use reth_chainspec::{
|
||||
net::NodeRecord, BaseFeeParams, Chain, ChainHardforks, ChainSpec, EthereumHardfork,
|
||||
ForkCondition,
|
||||
BaseFeeParams, Chain, ChainHardforks, ChainSpec, EthereumHardfork, ForkCondition,
|
||||
};
|
||||
use reth_network_peers::NodeRecord;
|
||||
use reth_primitives::{b256, B256};
|
||||
|
||||
use std::sync::Arc;
|
||||
|
||||
@ -2,8 +2,8 @@
|
||||
|
||||
use discv5::{enr::secp256k1::rand, Enr, Event, ListenConfig};
|
||||
use reth::network::config::SecretKey;
|
||||
use reth_chainspec::net::NodeRecord;
|
||||
use reth_discv5::{enr::EnrCombinedKeyWrapper, Config, Discv5};
|
||||
use reth_network_peers::NodeRecord;
|
||||
use reth_tracing::tracing::info;
|
||||
use std::{
|
||||
future::Future,
|
||||
|
||||
@ -10,14 +10,14 @@ use std::time::Duration;
|
||||
|
||||
use futures::StreamExt;
|
||||
use once_cell::sync::Lazy;
|
||||
use reth_chainspec::{net::mainnet_nodes, Chain, MAINNET};
|
||||
use reth_chainspec::{Chain, MAINNET};
|
||||
use reth_discv4::{DiscoveryUpdate, Discv4, Discv4ConfigBuilder, DEFAULT_DISCOVERY_ADDRESS};
|
||||
use reth_ecies::stream::ECIESStream;
|
||||
use reth_eth_wire::{
|
||||
EthMessage, EthStream, HelloMessage, P2PStream, Status, UnauthedEthStream, UnauthedP2PStream,
|
||||
};
|
||||
use reth_network::config::rng_secret_key;
|
||||
use reth_network_peers::{pk2id, NodeRecord};
|
||||
use reth_network_peers::{mainnet_nodes, pk2id, NodeRecord};
|
||||
use reth_primitives::{EthereumHardfork, Head, MAINNET_GENESIS_HASH};
|
||||
use secp256k1::{SecretKey, SECP256K1};
|
||||
use tokio::net::TcpStream;
|
||||
|
||||
Reference in New Issue
Block a user