diff options
author | Wladimir J. van der Laan <laanwj@gmail.com> | 2014-01-06 12:58:06 +0100 |
---|---|---|
committer | Wladimir J. van der Laan <laanwj@gmail.com> | 2014-01-06 13:36:24 +0100 |
commit | d31ad26550403d9ed8d5aedd0f65d610b55d9497 (patch) | |
tree | f8002c42fa4062606197564710595654a7be42ba | |
parent | 28352af0606cea00cd80e8f353bda02fadf2222c (diff) |
qt: Add missing lock in WalletModel::listCoins
Another problem detected by cs_wallet lock detection (#3401).
-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 78bc170623..6f3e3b0aaf 100644 --- a/src/qt/walletmodel.cpp +++ b/src/qt/walletmodel.cpp @@ -502,6 +502,7 @@ void WalletModel::listCoins(std::map<QString, std::vector<COutput> >& mapCoins) std::vector<COutput> vCoins; wallet->AvailableCoins(vCoins); + LOCK(wallet->cs_wallet); // ListLockedCoins, mapWallet std::vector<COutPoint> vLockedCoins; wallet->ListLockedCoins(vLockedCoins); |