Skip to content

Commit b0e8c4b

Browse files
committed
Merge pull request #3540
57d8e3f [Qt] add missing lock in walletmodel (Cozz Lovan)
2 parents 7fb5894 + 57d8e3f commit b0e8c4b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/qt/walletmodel.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -488,6 +488,7 @@ bool WalletModel::getPubKey(const CKeyID &address, CPubKey& vchPubKeyOut) const
488488
// returns a list of COutputs from COutPoints
489489
void WalletModel::getOutputs(const std::vector<COutPoint>& vOutpoints, std::vector<COutput>& vOutputs)
490490
{
491+
LOCK(wallet->cs_wallet);
491492
BOOST_FOREACH(const COutPoint& outpoint, vOutpoints)
492493
{
493494
if (!wallet->mapWallet.count(outpoint.hash)) continue;

0 commit comments

Comments
 (0)