-
Notifications
You must be signed in to change notification settings - Fork 156
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[release-v2.0] p2p: Move headers requested check earlier in the call
This moves the check for requested headers earlier in the call stack for processing headers messages. This ensures misbehaving peers are disconnected earlier, before spending cpu processing for block hash calculation. Backport of 68ed4d3.
- Loading branch information
Showing
1 changed file
with
14 additions
and
8 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