chore: use reth_chainspec where possible (#8891)

This commit is contained in:
joshieDo
2024-06-17 18:09:09 +02:00
committed by GitHub
parent 01d81b4dcc
commit 2a5c93fab3
183 changed files with 430 additions and 261 deletions

View File

@ -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

View File

@ -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]