Skip to content

Commit 57d8e3f

Browse files
committed
[Qt] add missing lock in walletmodel
1 parent b26de9d commit 57d8e3f

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)