Skip to content

Commit

Permalink
fix: crash in CreditPool: it meant to check that DIP0003 is activated
Browse files Browse the repository at this point in the history
  • Loading branch information
knst committed Aug 23, 2024
1 parent 045e178 commit ca83b26
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/evo/specialtxman.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit ca83b26

Please sign in to comment.