diff options
author | Jonas Schnelli <dev@jonasschnelli.ch> | 2018-01-28 09:15:18 -1000 |
---|---|---|
committer | Jonas Schnelli <dev@jonasschnelli.ch> | 2018-01-30 17:49:22 -1000 |
commit | 90ba2df11b5bc943ac48b49b5da8023864dc842d (patch) | |
tree | b5d52238deaabf843c6ee404fe7a632db3f20395 /src/validation.cpp | |
parent | 6970b30c6f1d2be7947295fe18f2390649b17a4b (diff) |
Fix missing cs_main lock for GuessVerificationProgress()
Diffstat (limited to 'src/validation.cpp')
-rw-r--r-- | src/validation.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/validation.cpp b/src/validation.cpp index 8cee0dfac3..289313b55c 100644 --- a/src/validation.cpp +++ b/src/validation.cpp @@ -4659,6 +4659,7 @@ bool DumpMempool(void) } //! Guess how far we are in the verification process at the given block index +//! require cs_main if pindex has not been validated yet (because nChainTx might be unset) double GuessVerificationProgress(const ChainTxData& data, const CBlockIndex *pindex) { if (pindex == nullptr) return 0.0; |