Skip to content

Commit

Permalink
Merge pull request #4371
Browse files Browse the repository at this point in the history
ea3acaf AvailableCoins: acquire cs_main mutex (Pavel Vasin)
  • Loading branch information
laanwj committed Jun 20, 2014
2 parents b8b98d5 + ea3acaf commit aaacfa0
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 aaacfa0

Please sign in to comment.