chore(net): extract NetworkHandle methods for launching node to traits (#9966)

This commit is contained in:
Emilia Hane
2024-08-01 18:44:23 +02:00
committed by GitHub
parent f3fac56fd9
commit b10517b3bf
56 changed files with 985 additions and 776 deletions

View File

@@ -7,15 +7,17 @@
//! ```
//!
//! This launch a regular reth node with a custom rlpx subprotocol.
use std::net::{Ipv4Addr, SocketAddr, SocketAddrV4};
use reth::builder::NodeHandle;
use reth_network::{
config::SecretKey, protocol::IntoRlpxSubProtocol, NetworkConfig, NetworkManager,
NetworkProtocols,
NetworkProtocols, PeersHandleProvider,
};
use reth_network_api::NetworkInfo;
use reth_node_ethereum::EthereumNode;
use reth_provider::test_utils::NoopProvider;
use std::net::{Ipv4Addr, SocketAddr, SocketAddrV4};
use subprotocol::{
connection::CustomCommand,
protocol::{