-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
blockchain: don't assign header as the best tip on
maybeAcceptBlockHeader maybeAcceptBlockHeader verified the passed in block header and set it as the best tip on it passing verification. However, since the best tip is used for marking a block that's passed all verification and headers verification isn't complete verification, we remove the code for adding the blockNode as the best tip. This allows us to use the ProcessBlockHeader code for verification of a header without accepting it as well.
- Loading branch information
1 parent
538c3fc
commit 6d36a75
Showing
2 changed files
with
18 additions
and
21 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