aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/wallet.cpp
diff options
context:
space:
mode:
authorWladimir J. van der Laan <[email protected]>2017-02-06 15:01:49 +0100
committerWladimir J. van der Laan <[email protected]>2017-02-06 16:14:17 +0100
commit02464da5e4aa8c19d4fff3859dcdee822e2af78c (patch)
tree00784ec6963a8370dc424c679856abd61331874e /src/wallet/wallet.cpp
parentMerge #9378: [trivial] Add documentation for CWalletTx::fFromMe member. (diff)
parentMake nWalletDBUpdated atomic to avoid a potential race. (diff)
downloaddiscoin-02464da5e4aa8c19d4fff3859dcdee822e2af78c.tar.xz
discoin-02464da5e4aa8c19d4fff3859dcdee822e2af78c.zip
Merge #9227: Make nWalletDBUpdated atomic to avoid a potential race.
d63ff62 Make nWalletDBUpdated atomic to avoid a potential race. (Patrick Strateman)
Diffstat (limited to 'src/wallet/wallet.cpp')
-rw-r--r--src/wallet/wallet.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wallet/wallet.cpp b/src/wallet/wallet.cpp
index a7b8022bd..a5e8752fc 100644
--- a/src/wallet/wallet.cpp
+++ b/src/wallet/wallet.cpp
@@ -3691,7 +3691,7 @@ CWallet* CWallet::CreateWalletFromFile(const std::string walletFile)
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")