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

Rebased-From: ea3acaf
  • Loading branch information
recursive-rat4 authored and Ross Nicoll committed Aug 29, 2014
1 parent d6a5e74 commit 6de0aad
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 @@ -1124,7 +1124,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 6de0aad

Please sign in to comment.