forked from dashpay/dash
-
Notifications
You must be signed in to change notification settings - Fork 717
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge #2225: [wallet] Rescan chain for wallet transactions process re…
…-written 030467f wallet: ScanForWalletTransactions rewrite, locking cs_main and cs_wallet only where is needed. (furszy) de3e3a7 [wallet] Make sure pindex is non-null before possibly referencing in LogPrintf call (Karl-Johan Alm) 146c843 wallet: speeding up ScanForWalletTransactions, removing a bad "always rescan the entire chain after zerocoin activation".. (furszy) Pull request description: Have re-organized the `CWallet::ScanForWalletTransactions` code to lock `cs_main` and `cs_wallet` only where is needed, preparing the ground to be able to almost completely remove `cs_main` lock dependency after merging #2209 (it will only be needed to advance the index to the next block, the rest of the process will run `cs_main` lock free). Plus, corrected an unneeded forced scan of the entire chain after zerocoin activation, was happening even when the first key in the wallet could had occurred way after it. Moving through the chain without any purpose. ACKs for top commit: random-zebra: ACK 030467f Fuzzbawls: ACK 030467f Tree-SHA512: 7ec051908bdaf7e04326d4348db93112408b251d558427ee95bfc6261125d75289482f4acd3c8db1c629968cf5d949ae05b46631148cfd6431a5986d47daef41
- Loading branch information
Showing
1 changed file
with
50 additions
and
31 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