diff --git a/libraries/core_libs/consensus/src/dag/dag_manager.cpp b/libraries/core_libs/consensus/src/dag/dag_manager.cpp index d9e4229ff1..b2466f4d6e 100644 --- a/libraries/core_libs/consensus/src/dag/dag_manager.cpp +++ b/libraries/core_libs/consensus/src/dag/dag_manager.cpp @@ -691,8 +691,10 @@ DagManager::VerifyBlockReturnType DagManager::verifyBlock(const DagBlock &blk) { if ((blk.getTips().size() + 1) > kPbftGasLimit / getDagConfig().gas_limit) { for (const auto &t : blk.getTips()) { const auto tip_blk = getDagBlock(t); - LOG(log_er_) << "DAG Block " << block_hash << " tip " << t << " not present"; - if (tip_blk == nullptr) return VerifyBlockReturnType::MissingTip; + if (tip_blk == nullptr) { + LOG(log_er_) << "DAG Block " << block_hash << " tip " << t << " not present"; + return VerifyBlockReturnType::MissingTip; + } block_gas_estimation += tip_blk->getGasEstimation(); } if (block_gas_estimation > kPbftGasLimit) {