Skip to content

Commit

Permalink
Log an info level when self-connections fail (this should be rare)
Browse files Browse the repository at this point in the history
  • Loading branch information
teor2345 committed Apr 23, 2023
1 parent c273db2 commit 2f29a3d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions zebra-network/src/peer/handshake.rs
Original file line number Diff line number Diff line change
Expand Up @@ -730,6 +730,7 @@ where
// maliciously remove nonces, and force us to make self-connections.
let nonce_reuse = nonces.lock().await.contains(&remote.nonce);
if nonce_reuse {
info!(?connected_addr, "rejecting self-connection attempt");
Err(HandshakeError::RemoteNonceReuse)?;
}

Expand Down

0 comments on commit 2f29a3d

Please sign in to comment.