forked from spesmilo/electrum
-
Notifications
You must be signed in to change notification settings - Fork 191
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed a regression introduced in 4.2.1
The issues manifests itself whenever the checkpoint block is after the asert anchor. This caused the code in blockchain.py to have a bad time. The asert anchor calculation code needs all headers, but if we have a checkpoint after the anchor, all headers are not always available. The fix is to either have checkpoints before the anchor, or to hard-code the anchor. This is the case for all chains we support now. We hard-coded the anchor for all chains except for scalenet, which will reorg back to before the anchor each time so hard-coding the anchor would break things in the future.
- Loading branch information
Showing
4 changed files
with
44 additions
and
19 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
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