diff options
| author | Wladimir J. van der Laan <[email protected]> | 2014-07-14 08:30:11 +0200 |
|---|---|---|
| committer | Wladimir J. van der Laan <[email protected]> | 2014-07-14 08:50:29 +0200 |
| commit | 77ed583f0f12fd160613feae495663ff538315d3 (patch) | |
| tree | 9f04f837c7f5b15e66160ad83381ccdca0ba2f46 /src | |
| parent | Merge pull request #4503 (diff) | |
| parent | Fix Watchonly: cs_main lock not held (diff) | |
| download | discoin-77ed583f0f12fd160613feae495663ff538315d3.tar.xz discoin-77ed583f0f12fd160613feae495663ff538315d3.zip | |
Merge pull request #4520
39cc492 Fix Watchonly: cs_main lock not held (Cozz Lovan)
Diffstat (limited to 'src')
| -rw-r--r-- | src/wallet.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/wallet.cpp b/src/wallet.cpp index 8fdc5f4b2..560cbc10b 100644 --- a/src/wallet.cpp +++ b/src/wallet.cpp @@ -1075,7 +1075,7 @@ int64_t CWallet::GetWatchOnlyBalance() const { int64_t nTotal = 0; { - LOCK(cs_wallet); + LOCK2(cs_main, cs_wallet); for (map<uint256, CWalletTx>::const_iterator it = mapWallet.begin(); it != mapWallet.end(); ++it) { const CWalletTx* pcoin = &(*it).second; @@ -1091,7 +1091,7 @@ int64_t CWallet::GetUnconfirmedWatchOnlyBalance() const { int64_t nTotal = 0; { - LOCK(cs_wallet); + LOCK2(cs_main, cs_wallet); for (map<uint256, CWalletTx>::const_iterator it = mapWallet.begin(); it != mapWallet.end(); ++it) { const CWalletTx* pcoin = &(*it).second; @@ -1106,7 +1106,7 @@ int64_t CWallet::GetImmatureWatchOnlyBalance() const { int64_t nTotal = 0; { - LOCK(cs_wallet); + LOCK2(cs_main, cs_wallet); for (map<uint256, CWalletTx>::const_iterator it = mapWallet.begin(); it != mapWallet.end(); ++it) { const CWalletTx* pcoin = &(*it).second; |