snarkOS icon indicating copy to clipboard operation
snarkOS copied to clipboard

[Bug] The node repeatedly tries to connect to itself

Open elderhammer opened this issue 2 years ago • 0 comments

🐛 Bug Report

What's the bug in snarkOS that you found? PeerResponse contains the IP of the requester. Currently there is no logic to handle this problem, which will cause the node to repeatedly try to connect to itself.

How serious is this bug and what is affected? Occupy the bandwidth of the node and reduce the network capability of the node.

Steps to Reproduce

How do I reproduce this issue in snarkOS?

  1. Start the node
  2. Connect to p2p network
  3. Request PeerRequest from other nodes

Code image Whether sending or receiving PeerResponse, the node's own IP is not filtered.

Expected Behavior

The node will not attempt to connect to itself.

Your Environment

  • snarkOS Version 2.2.4

elderhammer avatar Nov 11 '23 16:11 elderhammer