mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
chore: use reth_chainspec where possible (#8891)
This commit is contained in:
@ -44,6 +44,7 @@ generic-array.workspace = true
|
||||
serde = { workspace = true, optional = true }
|
||||
|
||||
[dev-dependencies]
|
||||
reth-chainspec.workspace = true
|
||||
reth-primitives.workspace = true
|
||||
assert_matches.workspace = true
|
||||
rand.workspace = true
|
||||
|
||||
@ -214,9 +214,9 @@ impl Discv4 {
|
||||
/// ```
|
||||
/// # use std::io;
|
||||
/// use rand::thread_rng;
|
||||
/// use reth_chainspec::net::NodeRecord;
|
||||
/// use reth_discv4::{Discv4, Discv4Config};
|
||||
/// use reth_network_peers::{pk2id, PeerId};
|
||||
/// use reth_primitives::NodeRecord;
|
||||
/// use secp256k1::SECP256K1;
|
||||
/// use std::{net::SocketAddr, str::FromStr};
|
||||
/// # async fn t() -> io::Result<()> {
|
||||
@ -2287,7 +2287,8 @@ mod tests {
|
||||
use crate::test_utils::{create_discv4, create_discv4_with_config, rng_endpoint, rng_record};
|
||||
use alloy_rlp::{Decodable, Encodable};
|
||||
use rand::{thread_rng, Rng};
|
||||
use reth_primitives::{hex, mainnet_nodes, EnrForkIdEntry, ForkHash};
|
||||
use reth_chainspec::net::mainnet_nodes;
|
||||
use reth_primitives::{hex, EnrForkIdEntry, ForkHash};
|
||||
use std::future::poll_fn;
|
||||
|
||||
#[tokio::test]
|
||||
|
||||
Reference in New Issue
Block a user