forked from dashpay/dash
-
Notifications
You must be signed in to change notification settings - Fork 716
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge #2027: [Sapling] Try to recover corruption of notes cache durin…
…g send operation 9c6bf2d Wallet: mark prevTx dirty if nullifier is spent, and commit to db (random-zebra) 0dc0896 Trivial: add missing cs_wallet lock (random-zebra) 225235f Trivial: remove redundant declaration of GetTestMasterSaplingSpendingKey (random-zebra) 1a07b3b Refactor: update NoteData and nullifier map directly in SSPKM (random-zebra) 557c6f4 [Sapling] If a nullifier is not properly cached, update id during spend (random-zebra) Pull request description: This is a contingency plan, in case of missing cached nullifier of a spent note in the wallet. Since, during the spend, the wallet is unlocked, and we have the spending key, we can directly recover the nullifier from the note (provided that we have a valid cached witness) and fix the issue in the background, without requiring any user intervention. If we don't have the witness, we can still provide a better log and error message in the gui, than a generic, and probably obscure ``` bad-txns-shielded-requirements-not-met ``` ACKs for top commit: furszy: Haven't checked it with the corrupted/invalid wallet, pure code review, ACK 9c6bf2d. Fuzzbawls: ACK 9c6bf2d Tree-SHA512: 7df90be2efc53b508b642f2e1bc19867f8dc39b46c239bed8c02d9f779df751e303db1f8ea661fe2c505ceada8f1f342f4f1bb8039764073ede1486f8a58ff99
- Loading branch information
Showing
5 changed files
with
75 additions
and
15 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
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