pathfinder
pathfinder copied to clipboard
Mark and disconnect malicious peers during sync
Peer connection should be closed and peer marked as not useful if the peer:
- [ ] sends garbage data or any data which violates the negotiated protocol,
- [ ] sends invalid data, e.g. wrong blocks or invalid signatures,
- [ ] is "stalling", for example if the peer advertises that it has some blocks or transactions but fails to deliver those blocks or transactions.