From 90ba2df11b5bc943ac48b49b5da8023864dc842d Mon Sep 17 00:00:00 2001 From: Jonas Schnelli Date: Sun, 28 Jan 2018 09:15:18 -1000 Subject: Fix missing cs_main lock for GuessVerificationProgress() --- src/validation.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/validation.cpp') diff --git a/src/validation.cpp b/src/validation.cpp index 8cee0dfac..289313b55 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; -- cgit v1.2.3