Fix missing cs_main lock for GuessVerificationProgress()

This commit is contained in:
Jonas Schnelli 2018-01-28 09:15:18 -10:00
parent 6970b30c6f
commit 90ba2df11b
No known key found for this signature in database
GPG key ID: 1EB776BB03C7922D
3 changed files with 6 additions and 9 deletions

View file

@ -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;