diff options
| author | Cozz Lovan <[email protected]> | 2014-01-14 17:41:57 +0100 |
|---|---|---|
| committer | Cozz Lovan <[email protected]> | 2014-01-14 17:41:57 +0100 |
| commit | 57d8e3f88fcb9f9ac3456d4954610bbf3acbe765 (patch) | |
| tree | ee5de226119b07f5e25c592aa60f48e26a9132ed /src/qt/walletmodel.cpp | |
| parent | qt: Update remaining "The Bitcoin Core Developers" (diff) | |
| download | discoin-57d8e3f88fcb9f9ac3456d4954610bbf3acbe765.tar.xz discoin-57d8e3f88fcb9f9ac3456d4954610bbf3acbe765.zip | |
[Qt] add missing lock in walletmodel
Diffstat (limited to 'src/qt/walletmodel.cpp')
| -rw-r--r-- | src/qt/walletmodel.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/qt/walletmodel.cpp b/src/qt/walletmodel.cpp index 6f3e3b0aa..14f29c933 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; |