-
Notifications
You must be signed in to change notification settings - Fork 153
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix bugs relating to reorganizations (#236)
Two bugs relating to reorganizations were fixed. The first was an off by one bug on initial sync which rarely would ever affect the end user. The second was that logic causing the removal of all blocks to the genesis block on a disconnection of an unknown block would cause irreversible corruption of the wallet. The new code ignores the hash of the block to remove and assumes that daemon removing blocks to some common unknown forking point between the daemon and wallet before connecting the side chain's blocks.
- Loading branch information
Showing
2 changed files
with
9 additions
and
23 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