mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
refactor: extract peer types to net/types (#7912)
Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
This commit is contained in:
committed by
GitHub
parent
6bdba8a2a6
commit
cc4a418ddf
@ -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
|
||||
|
||||
@ -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;
|
||||
|
||||
Reference in New Issue
Block a user