Browse Source

AvailableCoins: acquire cs_main mutex

It's required when called from WalletModel
pull/145/head
Pavel Vasin 10 years ago
parent
commit
ea3acaf383
  1. 2
      src/wallet.cpp

2
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;

Loading…
Cancel
Save