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

@ -13,7 +13,7 @@ workspace = true
[dependencies]
# reth
reth-primitives.workspace = true
reth-network-types.workspace = true
# async
pin-project.workspace = true

View File

@ -1,6 +1,6 @@
//! Support for banning peers.
use reth_primitives::PeerId;
use reth_network_types::PeerId;
use std::{collections::HashMap, net::IpAddr, time::Instant};
/// Determines whether or not the IP is globally routable.