mirror of
https://github.com/paradigmxyz/reth.git
synced 2026-04-08 03:01:12 -04:00
chore: alloy 0.14 (#15635)
Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
This commit is contained in:
@@ -14,11 +14,10 @@ mod subprotocol;
|
||||
|
||||
use std::net::{Ipv4Addr, SocketAddr, SocketAddrV4};
|
||||
|
||||
use reth::builder::NodeHandle;
|
||||
use reth::{builder::NodeHandle, network::config::rng_secret_key};
|
||||
use reth_ethereum::{
|
||||
network::{
|
||||
api::{test_utils::PeersHandleProvider, NetworkInfo},
|
||||
config::SecretKey,
|
||||
protocol::IntoRlpxSubProtocol,
|
||||
NetworkConfig, NetworkManager, NetworkProtocols,
|
||||
},
|
||||
@@ -48,7 +47,7 @@ fn main() -> eyre::Result<()> {
|
||||
node.network.add_rlpx_sub_protocol(custom_rlpx_handler.into_rlpx_sub_protocol());
|
||||
|
||||
// creates a separate network instance and adds the custom network subprotocol
|
||||
let secret_key = SecretKey::new(&mut rand::thread_rng());
|
||||
let secret_key = rng_secret_key();
|
||||
let (tx, mut from_peer1) = mpsc::unbounded_channel();
|
||||
let custom_rlpx_handler_2 = CustomRlpxProtoHandler { state: ProtocolState { events: tx } };
|
||||
let net_cfg = NetworkConfig::builder(secret_key)
|
||||
|
||||
Reference in New Issue
Block a user