chore: remove reth-primitives dependency from discv5, discv4 and etl crates (#8900)

This commit is contained in:
joshieDo
2024-06-17 19:47:54 +02:00
committed by GitHub
parent f967f9eb40
commit d05be8a467
11 changed files with 20 additions and 16 deletions

View File

@ -17,13 +17,14 @@ use std::{
};
use ::enr::Enr;
use alloy_primitives::bytes::Bytes;
use discv5::ListenConfig;
use enr::{discv4_id_to_discv5_id, EnrCombinedKeyWrapper};
use futures::future::join_all;
use itertools::Itertools;
use rand::{Rng, RngCore};
use reth_ethereum_forks::{EnrForkIdEntry, ForkId};
use reth_network_peers::{NodeRecord, PeerId};
use reth_primitives::{bytes::Bytes, EnrForkIdEntry, ForkId};
use secp256k1::SecretKey;
use tokio::{sync::mpsc, task};
use tracing::{debug, error, trace};
@ -777,11 +778,11 @@ mod test {
#[allow(unused)]
#[allow(clippy::assign_op_pattern)]
mod sigp {
use alloy_primitives::U256;
use enr::{
k256::sha2::digest::generic_array::{typenum::U32, GenericArray},
NodeId,
};
use reth_primitives::U256;
/// A `Key` is a cryptographic hash, identifying both the nodes participating in
/// the Kademlia DHT, as well as records stored in the DHT.