Browse Source

qt: Add missing lock in WalletModel::listCoins

Another problem detected by cs_wallet lock detection (#3401).
0.10
Wladimir J. van der Laan 11 years ago
parent
commit
d31ad26550
  1. 1
      src/qt/walletmodel.cpp

1
src/qt/walletmodel.cpp

@ -502,6 +502,7 @@ void WalletModel::listCoins(std::map<QString, std::vector<COutput> >& mapCoins) @@ -502,6 +502,7 @@ void WalletModel::listCoins(std::map<QString, std::vector<COutput> >& mapCoins)
std::vector<COutput> vCoins;
wallet->AvailableCoins(vCoins);
LOCK(wallet->cs_wallet); // ListLockedCoins, mapWallet
std::vector<COutPoint> vLockedCoins;
wallet->ListLockedCoins(vLockedCoins);

Loading…
Cancel
Save