mirror of
https://github.com/Retropex/bitcoin.git
synced 2025-05-25 11:32:33 +02:00
[Qt] add missing lock in walletmodel
This commit is contained in:
parent
b26de9d951
commit
57d8e3f88f
@ -488,6 +488,7 @@ bool WalletModel::getPubKey(const CKeyID &address, CPubKey& vchPubKeyOut) const
|
|||||||
// returns a list of COutputs from COutPoints
|
// returns a list of COutputs from COutPoints
|
||||||
void WalletModel::getOutputs(const std::vector<COutPoint>& vOutpoints, std::vector<COutput>& vOutputs)
|
void WalletModel::getOutputs(const std::vector<COutPoint>& vOutpoints, std::vector<COutput>& vOutputs)
|
||||||
{
|
{
|
||||||
|
LOCK(wallet->cs_wallet);
|
||||||
BOOST_FOREACH(const COutPoint& outpoint, vOutpoints)
|
BOOST_FOREACH(const COutPoint& outpoint, vOutpoints)
|
||||||
{
|
{
|
||||||
if (!wallet->mapWallet.count(outpoint.hash)) continue;
|
if (!wallet->mapWallet.count(outpoint.hash)) continue;
|
||||||
|
Loading…
Reference in New Issue
Block a user