diff options
| author | Pieter Wuille <[email protected]> | 2017-01-03 14:10:41 -0800 |
|---|---|---|
| committer | Pieter Wuille <[email protected]> | 2017-01-03 14:11:11 -0800 |
| commit | 2a524b8e8fe69ef487fd8ea1b4f7a03f473ed201 (patch) | |
| tree | 0adf634d3f43b22447ed7139775436a0927e7316 /src/wallet/walletdb.cpp | |
| parent | Merge #9252: Release cs_main before calling ProcessNewBlock, or processing he... (diff) | |
| parent | Wallet: Split main logic from InitLoadWallet into CreateWalletFromFile (diff) | |
| download | discoin-2a524b8e8fe69ef487fd8ea1b4f7a03f473ed201.tar.xz discoin-2a524b8e8fe69ef487fd8ea1b4f7a03f473ed201.zip | |
Merge #8776: Wallet refactoring leading up to multiwallet
5394b39 Wallet: Split main logic from InitLoadWallet into CreateWalletFromFile (Luke Dashjr)
fb0c934 Wallet: Let the interval-flushing thread figure out the filename (Luke Dashjr)
Diffstat (limited to 'src/wallet/walletdb.cpp')
| -rw-r--r-- | src/wallet/walletdb.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/wallet/walletdb.cpp b/src/wallet/walletdb.cpp index 0395e4a07..855fe7f74 100644 --- a/src/wallet/walletdb.cpp +++ b/src/wallet/walletdb.cpp @@ -768,7 +768,7 @@ DBErrors CWalletDB::ZapWalletTx(CWallet* pwallet, vector<CWalletTx>& vWtx) return DB_LOAD_OK; } -void ThreadFlushWalletDB(const string& strFile) +void ThreadFlushWalletDB() { // Make this thread recognisable as the wallet flushing thread RenameThread("bitcoin-wallet"); @@ -810,6 +810,7 @@ void ThreadFlushWalletDB(const string& strFile) if (nRefCount == 0) { boost::this_thread::interruption_point(); + const std::string& strFile = pwalletMain->strWalletFile; map<string, int>::iterator _mi = bitdb.mapFileUseCount.find(strFile); if (_mi != bitdb.mapFileUseCount.end()) { |