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

@ -6,14 +6,17 @@ edition.workspace = true
license.workspace = true
[dependencies]
once_cell.workspace = true
eyre.workspace = true
reth-primitives.workspace = true
reth-network.workspace = true
reth-discv4.workspace = true
reth-eth-wire.workspace = true
reth-ecies.workspace = true
futures.workspace = true
reth-network-types.workspace = true
secp256k1 = { workspace = true, features = ["global-context", "rand-std", "recovery"] }
futures.workspace = true
tokio.workspace = true
eyre.workspace = true
once_cell.workspace = true

View File

@ -16,8 +16,9 @@ use reth_eth_wire::{
EthMessage, EthStream, HelloMessage, P2PStream, Status, UnauthedEthStream, UnauthedP2PStream,
};
use reth_network::config::rng_secret_key;
use reth_network_types::pk2id;
use reth_primitives::{
mainnet_nodes, pk2id, Chain, Hardfork, Head, NodeRecord, MAINNET, MAINNET_GENESIS_HASH,
mainnet_nodes, Chain, Hardfork, Head, NodeRecord, MAINNET, MAINNET_GENESIS_HASH,
};
use secp256k1::{SecretKey, SECP256K1};
use tokio::net::TcpStream;