feat: use chain specific bootnodes (#1826)

This commit is contained in:
Dan Cline
2023-03-17 19:28:00 -04:00
committed by GitHub
parent d65cab9132
commit 7ac06cd29f
10 changed files with 85 additions and 74 deletions

View File

@ -21,7 +21,6 @@ use std::{
/// reexports for convenience
#[doc(hidden)]
mod __reexport {
pub use reth_discv4::bootnodes::*;
pub use secp256k1::SecretKey;
}
pub use __reexport::*;

View File

@ -55,9 +55,10 @@
//!
//! ```
//! # async fn launch() {
//! use reth_network::config::{rng_secret_key, mainnet_nodes};
//! use reth_network::config::rng_secret_key;
//! use reth_network::{NetworkConfig, NetworkManager};
//! use reth_provider::test_utils::NoopProvider;
//! use reth_primitives::mainnet_nodes;
//!
//! // This block provider implementation is used for testing purposes.
//! let client = NoopProvider::default();
@ -84,7 +85,7 @@
//! ```
//! use reth_provider::test_utils::NoopProvider;
//! use reth_transaction_pool::TransactionPool;
//! use reth_discv4::bootnodes::mainnet_nodes;
//! use reth_primitives::mainnet_nodes;
//! use reth_network::config::rng_secret_key;
//! use reth_network::{NetworkConfig, NetworkManager};
//! async fn launch<Pool: TransactionPool>(pool: Pool) {

View File

@ -240,7 +240,7 @@ where
/// ```
/// use reth_provider::test_utils::NoopProvider;
/// use reth_transaction_pool::TransactionPool;
/// use reth_discv4::bootnodes::mainnet_nodes;
/// use reth_primitives::mainnet_nodes;
/// use reth_network::config::rng_secret_key;
/// use reth_network::{NetworkConfig, NetworkManager};
/// async fn launch<Pool: TransactionPool>(pool: Pool) {

View File

@ -3,7 +3,7 @@
use ethers_core::utils::Geth;
use ethers_providers::{Http, Middleware, Provider};
use futures::StreamExt;
use reth_discv4::{bootnodes::mainnet_nodes, Discv4Config};
use reth_discv4::Discv4Config;
use reth_eth_wire::DisconnectReason;
use reth_interfaces::{
p2p::headers::client::{HeadersClient, HeadersRequest},
@ -17,7 +17,7 @@ use reth_network::{
NetworkConfigBuilder, NetworkEvent, NetworkManager, PeersConfig,
};
use reth_network_api::{NetworkInfo, Peers, PeersInfo};
use reth_primitives::{HeadersDirection, NodeRecord, PeerId};
use reth_primitives::{mainnet_nodes, HeadersDirection, NodeRecord, PeerId};
use reth_provider::test_utils::NoopProvider;
use reth_transaction_pool::test_utils::testing_pool;
use secp256k1::SecretKey;