mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
chore: rename network-types to network-peers (#8699)
This commit is contained in:
@ -16,7 +16,7 @@ workspace = true
|
||||
reth-primitives.workspace = true
|
||||
reth-net-common.workspace = true
|
||||
reth-net-nat.workspace = true
|
||||
reth-network-types.workspace = true
|
||||
reth-network-peers.workspace = true
|
||||
|
||||
# ethereum
|
||||
alloy-rlp = { workspace = true, features = ["derive"] }
|
||||
|
||||
@ -39,7 +39,7 @@ use discv5::{
|
||||
use enr::Enr;
|
||||
use parking_lot::Mutex;
|
||||
use proto::{EnrRequest, EnrResponse};
|
||||
use reth_network_types::{pk2id, PeerId};
|
||||
use reth_network_peers::{pk2id, PeerId};
|
||||
use reth_primitives::{bytes::Bytes, hex, ForkId, B256};
|
||||
use secp256k1::SecretKey;
|
||||
use std::{
|
||||
@ -214,7 +214,7 @@ impl Discv4 {
|
||||
/// # use std::io;
|
||||
/// use rand::thread_rng;
|
||||
/// use reth_discv4::{Discv4, Discv4Config};
|
||||
/// use reth_network_types::{pk2id, PeerId};
|
||||
/// use reth_network_peers::{pk2id, PeerId};
|
||||
/// use reth_primitives::NodeRecord;
|
||||
/// use secp256k1::SECP256K1;
|
||||
/// use std::{net::SocketAddr, str::FromStr};
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
use generic_array::GenericArray;
|
||||
use reth_network_types::PeerId;
|
||||
use reth_network_peers::PeerId;
|
||||
use reth_primitives::{keccak256, NodeRecord};
|
||||
|
||||
/// The key type for the table.
|
||||
|
||||
@ -3,7 +3,7 @@
|
||||
use crate::{error::DecodePacketError, MAX_PACKET_SIZE, MIN_PACKET_SIZE};
|
||||
use alloy_rlp::{Decodable, Encodable, Error as RlpError, Header, RlpDecodable, RlpEncodable};
|
||||
use enr::Enr;
|
||||
use reth_network_types::{pk2id, PeerId};
|
||||
use reth_network_peers::{pk2id, PeerId};
|
||||
use reth_primitives::{
|
||||
bytes::{Buf, BufMut, Bytes, BytesMut},
|
||||
keccak256, EnrForkIdEntry, ForkId, NodeRecord, B256,
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
//! Additional support for tracking nodes.
|
||||
|
||||
use reth_network_types::PeerId;
|
||||
use reth_network_peers::PeerId;
|
||||
use std::{collections::HashMap, net::IpAddr, time::Instant};
|
||||
|
||||
/// Keeps track of nodes from which we have received a `Pong` message.
|
||||
|
||||
@ -6,7 +6,7 @@ use crate::{
|
||||
IngressReceiver, PeerId, SAFE_MAX_DATAGRAM_NEIGHBOUR_RECORDS,
|
||||
};
|
||||
use rand::{thread_rng, Rng, RngCore};
|
||||
use reth_network_types::pk2id;
|
||||
use reth_network_peers::pk2id;
|
||||
use reth_primitives::{hex, ForkHash, ForkId, NodeRecord, B256};
|
||||
use secp256k1::{SecretKey, SECP256K1};
|
||||
use std::{
|
||||
|
||||
Reference in New Issue
Block a user