diff --git a/src/evo/cbtx.cpp b/src/evo/cbtx.cpp index 3fe222859343fd..15ca097061617a 100644 --- a/src/evo/cbtx.cpp +++ b/src/evo/cbtx.cpp @@ -469,6 +469,11 @@ static std::optional GetCoinbaseTx(const CBlockIndex* pindex) std::optional> GetNonNullCoinbaseChainlock(const CBlockIndex* pindex) { + // There's no CbTx before DIP0003 activation + if (DeploymentActiveAfter(pindex, Params().GetConsensus(), Consensus::DEPLOYMENT_DIP0003)) { + return std::nullopt; + } + auto opt_cbtx = GetCoinbaseTx(pindex); if (!opt_cbtx.has_value()) {