mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
chore: remove reth-primitives dependency from discv5, discv4 and etl crates (#8900)
This commit is contained in:
@ -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"] }
|
||||
|
||||
@ -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]
|
||||
|
||||
@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user