-
Notifications
You must be signed in to change notification settings - Fork 219
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: ban header sync peer if no headers provided (#3297)
Description --- Adds ban in header sync if peer has indicated that they have a better chain but is unable to provide headers Motivation and Context --- A peer can advertise a higher chain metadata and then return no headers. This case is likely malicious. In this PR, this is handled by banning the peer allowing the node to attempt a sync with another peer. How Has This Been Tested? --- Manually
- Loading branch information
Showing
2 changed files
with
16 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters