fix: crash in CreditPool: it meant to check that DIP0003 is activated

This commit is contained in:
Konstantin Akimov 2024-08-16 15:16:36 +07:00
parent 045e178730
commit ca83b26815
No known key found for this signature in database
GPG Key ID: 2176C4A5D01EA524

View File

@ -278,6 +278,7 @@ bool CSpecialTxProcessor::CheckCreditPoolDiffForBlock(const CBlock& block, const
AssertLockHeld(cs_main);
try {
if (!DeploymentActiveAt(*pindex, m_consensus_params, Consensus::DEPLOYMENT_DIP0003)) return true;
if (!DeploymentActiveAt(*pindex, m_consensus_params, Consensus::DEPLOYMENT_V20)) return true;
auto creditPoolDiff = GetCreditPoolDiffForBlock(m_cpoolman, m_chainman.m_blockman, m_qman, block, pindex->pprev, m_consensus_params, blockSubsidy, state);