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

@ -45,7 +45,6 @@ serde = { workspace = true, optional = true }
[dev-dependencies]
reth-chainspec.workspace = true
reth-primitives.workspace = true
assert_matches.workspace = true
rand.workspace = true
tokio = { workspace = true, features = ["macros"] }

View File

@ -2285,10 +2285,11 @@ pub enum DiscoveryUpdate {
mod tests {
use super::*;
use crate::test_utils::{create_discv4, create_discv4_with_config, rng_endpoint, rng_record};
use alloy_primitives::hex;
use alloy_rlp::{Decodable, Encodable};
use rand::{thread_rng, Rng};
use reth_chainspec::net::mainnet_nodes;
use reth_primitives::{hex, EnrForkIdEntry, ForkHash};
use reth_ethereum_forks::{EnrForkIdEntry, ForkHash};
use std::future::poll_fn;
#[tokio::test]

View File

@ -542,10 +542,11 @@ mod tests {
test_utils::{rng_endpoint, rng_ipv4_record, rng_ipv6_record, rng_message},
DEFAULT_DISCOVERY_PORT, SAFE_MAX_DATAGRAM_NEIGHBOUR_RECORDS,
};
use alloy_primitives::hex;
use assert_matches::assert_matches;
use enr::EnrPublicKey;
use rand::{thread_rng, Rng, RngCore};
use reth_primitives::{hex, ForkHash};
use reth_ethereum_forks::ForkHash;
#[test]
fn test_endpoint_ipv_v4() {