From ca83b2681500f0f2b0003be2057850b821cad2f0 Mon Sep 17 00:00:00 2001 From: Konstantin Akimov Date: Fri, 16 Aug 2024 15:16:36 +0700 Subject: [PATCH] fix: crash in CreditPool: it meant to check that DIP0003 is activated --- src/evo/specialtxman.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/evo/specialtxman.cpp b/src/evo/specialtxman.cpp index 9f3c61070e..2e1b29ce8e 100644 --- a/src/evo/specialtxman.cpp +++ b/src/evo/specialtxman.cpp @@ -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);