Skip to content

Commit

Permalink
chore(deps): replace reth-primitives in dns (#8814)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattsse committed Jun 13, 2024
1 parent a96884d commit 560080e
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 5 deletions.
3 changes: 3 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion crates/net/dns/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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
Expand Down
8 changes: 5 additions & 3 deletions crates/net/dns/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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::{
Expand Down Expand Up @@ -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};

Expand Down
2 changes: 1 addition & 1 deletion crates/net/dns/src/tree.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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};
Expand Down

0 comments on commit 560080e

Please sign in to comment.