From 3e181ab53a3f0ea93b40ffaf39123a270d0bd307 Mon Sep 17 00:00:00 2001 From: Matthias Seitz Date: Thu, 23 Jan 2025 00:14:42 +0100 Subject: [PATCH] chore: use alloy-eip2124 directly (#13941) --- Cargo.lock | 2 +- crates/net/network-types/Cargo.toml | 5 +++-- crates/net/network-types/src/peers/mod.rs | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index a692754d04bf..152116fe8761 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -7868,8 +7868,8 @@ dependencies = [ name = "reth-network-types" version = "1.1.5" dependencies = [ + "alloy-eip2124", "humantime-serde", - "reth-ethereum-forks", "reth-net-banlist", "reth-network-peers", "serde", diff --git a/crates/net/network-types/Cargo.toml b/crates/net/network-types/Cargo.toml index cd73106ad23c..7068371fb807 100644 --- a/crates/net/network-types/Cargo.toml +++ b/crates/net/network-types/Cargo.toml @@ -15,7 +15,8 @@ workspace = true # reth reth-network-peers.workspace = true reth-net-banlist.workspace = true -reth-ethereum-forks.workspace = true + +alloy-eip2124.workspace = true # misc serde = { workspace = true, optional = true } @@ -29,6 +30,6 @@ tracing.workspace = true serde = [ "dep:serde", "dep:humantime-serde", - "reth-ethereum-forks/serde" + "alloy-eip2124/serde" ] test-utils = [] diff --git a/crates/net/network-types/src/peers/mod.rs b/crates/net/network-types/src/peers/mod.rs index bcfddbca3703..be4847a2c734 100644 --- a/crates/net/network-types/src/peers/mod.rs +++ b/crates/net/network-types/src/peers/mod.rs @@ -7,7 +7,7 @@ pub mod state; pub use config::{ConnectionsConfig, PeersConfig}; pub use reputation::{Reputation, ReputationChange, ReputationChangeKind, ReputationChangeWeights}; -use reth_ethereum_forks::ForkId; +use alloy_eip2124::ForkId; use tracing::trace; use crate::{