snarkOS
snarkOS copied to clipboard
[Bug] The node repeatedly tries to connect to itself
🐛 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?
- Start the node
- Connect to p2p network
- Request PeerRequest from other nodes
Code
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