Skip to content

Commit d31ad26

Browse files
committed
qt: Add missing lock in WalletModel::listCoins
Another problem detected by cs_wallet lock detection (#3401).
1 parent 28352af commit d31ad26

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
@@ -502,6 +502,7 @@ void WalletModel::listCoins(std::map<QString, std::vector<COutput> >& mapCoins)
502502
std::vector<COutput> vCoins;
503503
wallet->AvailableCoins(vCoins);
504504

505+
LOCK(wallet->cs_wallet); // ListLockedCoins, mapWallet
505506
std::vector<COutPoint> vLockedCoins;
506507
wallet->ListLockedCoins(vLockedCoins);
507508

0 commit comments

Comments
 (0)