Skip to content

Commit ca83b26

Browse files
committed
fix: crash in CreditPool: it meant to check that DIP0003 is activated
1 parent 045e178 commit ca83b26

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/evo/specialtxman.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -278,6 +278,7 @@ bool CSpecialTxProcessor::CheckCreditPoolDiffForBlock(const CBlock& block, const
278278
AssertLockHeld(cs_main);
279279

280280
try {
281+
if (!DeploymentActiveAt(*pindex, m_consensus_params, Consensus::DEPLOYMENT_DIP0003)) return true;
281282
if (!DeploymentActiveAt(*pindex, m_consensus_params, Consensus::DEPLOYMENT_V20)) return true;
282283

283284
auto creditPoolDiff = GetCreditPoolDiffForBlock(m_cpoolman, m_chainman.m_blockman, m_qman, block, pindex->pprev, m_consensus_params, blockSubsidy, state);

0 commit comments

Comments
 (0)