diff --git a/Cargo.lock b/Cargo.lock index ec86a945a..1f8160c45 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -7128,8 +7128,8 @@ dependencies = [ name = "reth-net-common" version = "0.2.0-beta.7" dependencies = [ + "alloy-primitives", "pin-project", - "reth-network-types", "tokio", ] diff --git a/crates/net/common/Cargo.toml b/crates/net/common/Cargo.toml index 0c3b253a5..3d73f480f 100644 --- a/crates/net/common/Cargo.toml +++ b/crates/net/common/Cargo.toml @@ -12,8 +12,8 @@ description = "Types shared across network code" workspace = true [dependencies] -# reth -reth-network-types.workspace = true +# ethereum +alloy-primitives.workspace = true # async pin-project.workspace = true diff --git a/crates/net/common/src/ban_list.rs b/crates/net/common/src/ban_list.rs index 11d4c6049..1cde15ef2 100644 --- a/crates/net/common/src/ban_list.rs +++ b/crates/net/common/src/ban_list.rs @@ -1,6 +1,7 @@ //! Support for banning peers. -use reth_network_types::PeerId; +type PeerId = alloy_primitives::B512; + use std::{collections::HashMap, net::IpAddr, time::Instant}; /// Determines whether or not the IP is globally routable.