chore: replace reth-chainspec dep with alloy chains (#12550)

This commit is contained in:
Matthias Seitz
2024-11-14 18:15:27 +01:00
committed by GitHub
parent b1635fcba2
commit bd29f82567
5 changed files with 9 additions and 8 deletions

View File

@ -13,7 +13,6 @@ workspace = true
[dependencies]
# reth
reth-chainspec.workspace = true
reth-codecs.workspace = true
reth-primitives.workspace = true
reth-ecies.workspace = true
@ -23,6 +22,7 @@ reth-network-peers.workspace = true
# ethereum
alloy-primitives.workspace = true
alloy-chains.workspace = true
# metrics
reth-metrics.workspace = true
@ -69,10 +69,10 @@ arbitrary = [
"reth-primitives/arbitrary",
"reth-eth-wire-types/arbitrary",
"dep:arbitrary",
"reth-chainspec/arbitrary",
"alloy-eips/arbitrary",
"alloy-primitives/arbitrary",
"reth-codecs/arbitrary"
"reth-codecs/arbitrary",
"alloy-chains/arbitrary"
]
serde = [
"dep:serde",
@ -82,7 +82,8 @@ serde = [
"bytes/serde",
"rand/serde",
"secp256k1/serde",
"reth-codecs/serde"
"reth-codecs/serde",
"alloy-chains/serde"
]
[[test]]

View File

@ -3,8 +3,8 @@
use crate::{
errors::P2PStreamError, message::MessageError, version::ParseVersionError, DisconnectReason,
};
use alloy_chains::Chain;
use alloy_primitives::B256;
use reth_chainspec::Chain;
use reth_eth_wire_types::EthVersion;
use reth_primitives::{GotExpected, GotExpectedBoxed, ValidationError};
use std::io;

View File

@ -365,9 +365,9 @@ mod tests {
EthMessage, EthStream, EthVersion, HelloMessageWithProtocols, PassthroughCodec,
ProtocolVersion, Status,
};
use alloy_chains::NamedChain;
use alloy_primitives::{B256, U256};
use futures::{SinkExt, StreamExt};
use reth_chainspec::NamedChain;
use reth_ecies::stream::ECIESStream;
use reth_eth_wire_types::EthNetworkPrimitives;
use reth_network_peers::pk2id;

View File

@ -6,8 +6,8 @@ use crate::{
hello::DEFAULT_TCP_PORT, EthVersion, HelloMessageWithProtocols, P2PStream, ProtocolVersion,
Status, UnauthedP2PStream,
};
use alloy_chains::Chain;
use alloy_primitives::{B256, U256};
use reth_chainspec::Chain;
use reth_network_peers::pk2id;
use reth_primitives::{ForkFilter, Head};
use secp256k1::{SecretKey, SECP256K1};