aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2014-01-14 18:32:38 +0100
committerWladimir J. van der Laan <laanwj@gmail.com>2014-01-14 18:33:27 +0100
commitb0e8c4b0b9d4ce9b34b6fba348d207f845a6be98 (patch)
tree07024734017d2140966d621e82f829ee9e3ff564 /src
parent7fb5894b4c5bc48fc6a3e132772e68b1c4fbe1cc (diff)
parent57d8e3f88fcb9f9ac3456d4954610bbf3acbe765 (diff)
downloadbitcoin-b0e8c4b0b9d4ce9b34b6fba348d207f845a6be98.tar.xz
Merge pull request #3540
57d8e3f [Qt] add missing lock in walletmodel (Cozz Lovan)
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;