-
Notifications
You must be signed in to change notification settings - Fork 284
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
walletdb: make markState part of the setTip.
Fixes two markState issues: - On close/crash of walletdb on add block wdb state would have incorrect state for the startHeight/startHash and mark. WalletDB could end up having incorrect startHeight/startHash for the rest of the walletDB until rescan before height. Check the wallet-chainstate-test case for corruption. - On the specific height where the walletDB received first transaction, state.height would also be incorrect (only for one block).
- Loading branch information
Showing
2 changed files
with
18 additions
and
32 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