forked from dashpay/dash
-
Notifications
You must be signed in to change notification settings - Fork 714
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge #2327: [BUG] Fix crash when sending shield notes from the GUI w…
…ith coin control dcc0166 [Refactoring] Don't compute depth multiple times in GetFilteredNotes (random-zebra) 85c7425 [BUG] Missing cs_wallet lock in SaplingScriptPubKeyMan::GetNotes (random-zebra) fbb7813 [Trivial] Pass big args by const-reference for notes decryption (random-zebra) 28cf3fb [Refactoring] Use CWalletTx::DecryptSaplingNote in Get[Filtered]Notes (random-zebra) c316dda [Tests] Add basic unit-test for SaplingScriptPubKeyMan::GetNotes (random-zebra) Pull request description: This particular flow calls `SaplingScriptPubKeyMan::GetNotes` (instead of `GetFilteredNotes`), which calls `CWalletTx::GetDepthInMainChain` without holding `cs_wallet` (requirement introduced via `AssertLockHeld` in 1386ab7). Add a simple unittest to cover `GetNotes`/`GetFilteredNotes`, do a bit of refactoring (removing some code duplication), and fix the missing lock. ACKs for top commit: furszy: ACK dcc0166 . Fuzzbawls: ACK dcc0166 Tree-SHA512: a33ff8d8cb71b845c056f00eb9309292d10937ea3e18c71b402a907905bf305a61061c0eeedd27342001faf6d26c06430cbe34e0f555da4dfe052817d5506330
- Loading branch information
Showing
4 changed files
with
121 additions
and
38 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