mirror of
https://github.com/paradigmxyz/reth.git
synced 2026-04-30 03:01:58 -04:00
chore(net): extract NetworkHandle methods for launching node to traits (#9966)
This commit is contained in:
@@ -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::{
|
||||
|
||||
Reference in New Issue
Block a user