Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
int88 committed Aug 2, 2024
1 parent 7eb0cfe commit d41355d
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions crates/cli/commands/src/p2p/rlpx.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
use clap::{Parser, Subcommand};
use enr::Enr;
use futures::StreamExt;
use reth_ecies::stream::ECIESStream;
use reth_eth_wire::{HelloMessage, UnauthedP2PStream};
use reth_network::config::rng_secret_key;
Expand Down Expand Up @@ -32,11 +31,9 @@ impl Command {
let peer_id = pk2id(&key.public_key(SECP256K1));
let hello = HelloMessage::builder(peer_id).build();

let (p2p_stream, their_hello) =
let (_, their_hello) =
UnauthedP2PStream::new(ecies_stream).handshake(hello).await?;

p2p_stream.send_ping();

println!("{:#?}", their_hello);
}
}
Expand Down

0 comments on commit d41355d

Please sign in to comment.