chore: rename network-types to network-peers (#8699)

This commit is contained in:
Matthias Seitz
2024-06-09 15:13:46 +02:00
committed by GitHub
parent c1d69d3a7e
commit 2852893a7d
73 changed files with 96 additions and 96 deletions

View File

@ -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"] }

View File

@ -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};

View File

@ -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.

View File

@ -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,

View File

@ -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.

View File

@ -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::{