aboutsummaryrefslogtreecommitdiff
path: root/src/wallet.cpp
diff options
context:
space:
mode:
authorPavel Vasin <rat4vier@gmail.com>2014-06-20 16:32:57 +0400
committerPavel Vasin <rat4vier@gmail.com>2014-06-20 16:32:57 +0400
commitea3acaf383ade60d39643b786db5b6942b8b7991 (patch)
tree3785a5c0679e825073a2e76a8b980c10cd24c347 /src/wallet.cpp
parentb8b98d5642faf7b6acb88be9106a22512fc6020c (diff)
AvailableCoins: acquire cs_main mutex
It's required when called from WalletModel
Diffstat (limited to 'src/wallet.cpp')
-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;