mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-16 13:01:19 +02:00
Fix missing cs_main lock for GuessVerificationProgress()
This commit is contained in:
parent
6970b30c6f
commit
90ba2df11b
3 changed files with 6 additions and 9 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue