Skip to content

Commit

Permalink
AvailableCoins: acquire cs_main mutex
Browse files Browse the repository at this point in the history
It's required when called from WalletModel
  • Loading branch information
recursive-rat4 committed Jun 20, 2014
1 parent b8b98d5 commit ea3acaf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/wallet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit ea3acaf

Please sign in to comment.