aboutsummaryrefslogtreecommitdiff
path: root/src/qt/clientmodel.cpp
diff options
context:
space:
mode:
authorJonas Schnelli <dev@jonasschnelli.ch>2018-01-28 09:15:18 -1000
committerJonas Schnelli <dev@jonasschnelli.ch>2018-01-30 17:49:22 -1000
commit90ba2df11b5bc943ac48b49b5da8023864dc842d (patch)
treeb5d52238deaabf843c6ee404fe7a632db3f20395 /src/qt/clientmodel.cpp
parent6970b30c6f1d2be7947295fe18f2390649b17a4b (diff)
downloadbitcoin-90ba2df11b5bc943ac48b49b5da8023864dc842d.tar.xz
Fix missing cs_main lock for GuessVerificationProgress()
Diffstat (limited to 'src/qt/clientmodel.cpp')
-rw-r--r--src/qt/clientmodel.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qt/clientmodel.cpp b/src/qt/clientmodel.cpp
index 3642e5d4d4..eaf2896bc3 100644
--- a/src/qt/clientmodel.cpp
+++ b/src/qt/clientmodel.cpp
@@ -138,9 +138,9 @@ size_t ClientModel::getMempoolDynamicUsage() const
double ClientModel::getVerificationProgress(const CBlockIndex *tipIn) const
{
CBlockIndex *tip = const_cast<CBlockIndex *>(tipIn);
+ LOCK(cs_main);
if (!tip)
{
- LOCK(cs_main);
tip = chainActive.Tip();
}
return GuessVerificationProgress(Params().TxData(), tip);