aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCozz Lovan <cozzlovan@yahoo.com>2014-01-14 17:41:57 +0100
committerCozz Lovan <cozzlovan@yahoo.com>2014-01-14 17:41:57 +0100
commit57d8e3f88fcb9f9ac3456d4954610bbf3acbe765 (patch)
treeee5de226119b07f5e25c592aa60f48e26a9132ed /src
parentb26de9d951d482d2604c145b6acca8ec2fca4831 (diff)
[Qt] add missing lock in walletmodel
Diffstat (limited to 'src')
-rw-r--r--src/qt/walletmodel.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/qt/walletmodel.cpp b/src/qt/walletmodel.cpp
index 6f3e3b0aaf..14f29c933b 100644
--- a/src/qt/walletmodel.cpp
+++ b/src/qt/walletmodel.cpp
@@ -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;