From 6de0aad0aeaa6129013b0c778f810bf88c7f91d4 Mon Sep 17 00:00:00 2001 From: Pavel Vasin Date: Fri, 20 Jun 2014 16:32:57 +0400 Subject: [PATCH] AvailableCoins: acquire cs_main mutex It's required when called from WalletModel Rebased-From: ea3acaf --- src/wallet.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wallet.cpp b/src/wallet.cpp index 56b0d183d..206f86077 100644 --- a/src/wallet.cpp +++ b/src/wallet.cpp @@ -1124,7 +1124,7 @@ void CWallet::AvailableCoins(vector& vCoins, bool fOnlyConfirmed, const vCoins.clear(); { - LOCK(cs_wallet); + LOCK2(cs_main, cs_wallet); for (map::const_iterator it = mapWallet.begin(); it != mapWallet.end(); ++it) { const uint256& wtxid = it->first;