chore: alloy 0.14 (#15635)

Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
This commit is contained in:
Yash Atreya
2025-04-11 11:58:57 +05:30
committed by GitHub
parent 2563e93d95
commit 58fe204ff2
126 changed files with 968 additions and 868 deletions

View File

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