chore(deps): replace reth-primitives in dns (#8814)

This commit is contained in:
Matthias Seitz
2024-06-13 23:51:56 +02:00
committed by GitHub
parent a96884d670
commit 560080ee19
4 changed files with 13 additions and 5 deletions

View File

@ -13,11 +13,12 @@ workspace = true
[dependencies]
# reth
reth-primitives.workspace = true
reth-ethereum-forks.workspace = true
reth-net-common.workspace = true
reth-network-peers = { workspace = true, features = ["secp256k1"] }
# ethereum
alloy-primitives.workspace = true
secp256k1 = { workspace = true, features = ["global-context", "rand-std", "recovery", "serde"] }
enr.workspace = true
@ -39,7 +40,9 @@ serde = { workspace = true, optional = true }
serde_with = { version = "3.3.0", optional = true }
[dev-dependencies]
reth-primitives.workspace = true
alloy-rlp.workspace = true
alloy-chains.workspace = true
tokio = { workspace = true, features = ["sync", "rt", "rt-multi-thread"] }
reth-tracing.workspace = true
rand.workspace = true

View File

@ -22,8 +22,8 @@ use crate::{
pub use config::DnsDiscoveryConfig;
use enr::Enr;
use error::ParseDnsEntryError;
use reth_network_peers::pk2id;
use reth_primitives::{EnrForkIdEntry, ForkId, NodeRecord};
use reth_ethereum_forks::{EnrForkIdEntry, ForkId};
use reth_network_peers::{pk2id, NodeRecord};
use schnellru::{ByLength, LruMap};
use secp256k1::SecretKey;
use std::{
@ -411,9 +411,11 @@ fn convert_enr_node_record(enr: &Enr<SecretKey>) -> Option<DnsNodeRecordUpdate>
mod tests {
use super::*;
use crate::tree::TreeRootEntry;
use alloy_chains::Chain;
use alloy_rlp::{Decodable, Encodable};
use enr::EnrKey;
use reth_primitives::{Chain, ForkHash, Hardfork, MAINNET};
use reth_ethereum_forks::{ForkHash, Hardfork};
use reth_primitives::MAINNET;
use secp256k1::rand::thread_rng;
use std::{future::poll_fn, net::Ipv4Addr};

View File

@ -21,9 +21,9 @@ use crate::error::{
ParseDnsEntryError::{FieldNotFound, UnknownEntry},
ParseEntryResult,
};
use alloy_primitives::{hex, Bytes};
use data_encoding::{BASE32_NOPAD, BASE64URL_NOPAD};
use enr::{Enr, EnrKey, EnrKeyUnambiguous, EnrPublicKey, Error as EnrError};
use reth_primitives::{hex, Bytes};
use secp256k1::SecretKey;
#[cfg(feature = "serde")]
use serde_with::{DeserializeFromStr, SerializeDisplay};