diff options
| author | Wladimir J. van der Laan <[email protected]> | 2017-02-06 15:01:49 +0100 |
|---|---|---|
| committer | Wladimir J. van der Laan <[email protected]> | 2017-02-06 16:14:17 +0100 |
| commit | 02464da5e4aa8c19d4fff3859dcdee822e2af78c (patch) | |
| tree | 00784ec6963a8370dc424c679856abd61331874e /src/wallet/wallet.cpp | |
| parent | Merge #9378: [trivial] Add documentation for CWalletTx::fFromMe member. (diff) | |
| parent | Make nWalletDBUpdated atomic to avoid a potential race. (diff) | |
| download | discoin-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.cpp | 2 |
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") |