refactor: extract peer types to net/types (#7912)

Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
This commit is contained in:
Andrzej Sulkowski
2024-04-27 06:18:59 +02:00
committed by GitHub
parent 6bdba8a2a6
commit cc4a418ddf
75 changed files with 428 additions and 86 deletions

View File

@ -15,6 +15,7 @@ workspace = true
# reth
reth-primitives.workspace = true
reth-net-common.workspace = true
reth-network-types.workspace = true
# ethereum
secp256k1 = { workspace = true, features = ["global-context", "rand-std", "recovery", "serde"] }

View File

@ -22,7 +22,8 @@ use crate::{
pub use config::DnsDiscoveryConfig;
use enr::Enr;
use error::ParseDnsEntryError;
use reth_primitives::{pk2id, EnrForkIdEntry, ForkId, NodeRecord};
use reth_network_types::pk2id;
use reth_primitives::{EnrForkIdEntry, ForkId, NodeRecord};
use schnellru::{ByLength, LruMap};
use secp256k1::SecretKey;
use std::{