[Qt] add missing lock in walletmodel

This commit is contained in:
Cozz Lovan 2014-01-14 17:41:57 +01:00
parent b26de9d951
commit 57d8e3f88f
1 changed files with 1 additions and 0 deletions

View File

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