aboutsummaryrefslogtreecommitdiff
path: root/src/wallet.cpp
diff options
context:
space:
mode:
authorPavel Vasin <[email protected]>2014-06-20 16:32:57 +0400
committerPavel Vasin <[email protected]>2014-06-20 16:32:57 +0400
commitea3acaf383ade60d39643b786db5b6942b8b7991 (patch)
tree3785a5c0679e825073a2e76a8b980c10cd24c347 /src/wallet.cpp
parentMerge pull request #4310 (diff)
downloaddiscoin-ea3acaf383ade60d39643b786db5b6942b8b7991.tar.xz
discoin-ea3acaf383ade60d39643b786db5b6942b8b7991.zip
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 400c966a9..3176cf893 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;