diff options
| author | Patrick Strateman <[email protected]> | 2016-11-26 19:32:30 -0800 |
|---|---|---|
| committer | Patrick Strateman <[email protected]> | 2016-12-21 13:49:48 -0800 |
| commit | d63ff6265b0c6ae30efcbb9120d4db419606198a (patch) | |
| tree | a9ea9ba1bcc85f854b6164d8e9689a95eaf5bc15 /src/wallet/wallet.cpp | |
| parent | Merge #9128: net: Decouple CConnman and message serialization (diff) | |
| download | discoin-d63ff6265b0c6ae30efcbb9120d4db419606198a.tar.xz discoin-d63ff6265b0c6ae30efcbb9120d4db419606198a.zip | |
Make nWalletDBUpdated atomic to avoid a potential race.
Diffstat (limited to 'src/wallet/wallet.cpp')
| -rw-r--r-- | src/wallet/wallet.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wallet/wallet.cpp b/src/wallet/wallet.cpp index 39c4fc3f1..15001776f 100644 --- a/src/wallet/wallet.cpp +++ b/src/wallet/wallet.cpp @@ -3508,7 +3508,7 @@ bool CWallet::InitLoadWallet() walletInstance->ScanForWalletTransactions(pindexRescan, true); LogPrintf(" rescan %15dms\n", GetTimeMillis() - nStart); walletInstance->SetBestChain(chainActive.GetLocator()); - nWalletDBUpdated++; + CWalletDB::IncrementUpdateCounter(); // Restore wallet transaction metadata after -zapwallettxes=1 if (GetBoolArg("-zapwallettxes", false) && GetArg("-zapwallettxes", "1") != "2") |