implement part of reth p2p rlpx ping (#9762)

Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
This commit is contained in:
int88
2024-08-03 12:36:36 +08:00
committed by GitHub
parent 52cdcf0a9a
commit 2bfa2defc4
10 changed files with 281 additions and 2 deletions

View File

@ -302,7 +302,7 @@ impl<S> P2PStream<S> {
}
/// Queues in a _snappy_ encoded [`P2PMessage::Ping`] message.
fn send_ping(&mut self) {
pub fn send_ping(&mut self) {
self.outgoing_messages.push_back(Bytes::from(alloy_rlp::encode(P2PMessage::Ping)));
}
}