mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-12-12 05:34:57 +01:00
Fix missing cs_main lock for GuessVerificationProgress()
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user