aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2014-06-20 16:57:02 +0200
committerWladimir J. van der Laan <laanwj@gmail.com>2014-06-20 16:57:08 +0200
commitaaacfa089868a3bce7a2878ce86f642a410aebb1 (patch)
tree3785a5c0679e825073a2e76a8b980c10cd24c347
parentb8b98d5642faf7b6acb88be9106a22512fc6020c (diff)
parentea3acaf383ade60d39643b786db5b6942b8b7991 (diff)
Merge pull request #4371
ea3acaf AvailableCoins: acquire cs_main mutex (Pavel Vasin)
-rw-r--r--src/wallet.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wallet.cpp b/src/wallet.cpp
index 400c966a95..3176cf893a 100644
--- a/src/wallet.cpp
+++ b/src/wallet.cpp
@@ -1028,7 +1028,7 @@ void CWallet::AvailableCoins(vector<COutput>& vCoins, bool fOnlyConfirmed, const
vCoins.clear();
{
- LOCK(cs_wallet);
+ LOCK2(cs_main, cs_wallet);
for (map<uint256, CWalletTx>::const_iterator it = mapWallet.begin(); it != mapWallet.end(); ++it)
{
const uint256& wtxid = it->first;