Browse Source

Merge pull request #3540

57d8e3f [Qt] add missing lock in walletmodel (Cozz Lovan)
pull/145/head
Wladimir J. van der Laan 11 years ago
parent
commit
b0e8c4b0b9
No known key found for this signature in database GPG Key ID: 74810B012346C9A6
  1. 1
      src/qt/walletmodel.cpp

1
src/qt/walletmodel.cpp

@ -488,6 +488,7 @@ bool WalletModel::getPubKey(const CKeyID &address, CPubKey& vchPubKeyOut) const
// returns a list of COutputs from COutPoints
void WalletModel::getOutputs(const std::vector<COutPoint>& vOutpoints, std::vector<COutput>& vOutputs)
{
LOCK(wallet->cs_wallet);
BOOST_FOREACH(const COutPoint& outpoint, vOutpoints)
{
if (!wallet->mapWallet.count(outpoint.hash)) continue;

Loading…
Cancel
Save