From cd0201daf2003f0dcfda6699fe7c6afef86e5177 Mon Sep 17 00:00:00 2001 From: mfrankovi Date: Wed, 21 Feb 2024 15:24:32 +0100 Subject: [PATCH] chore: remove incorrect missing tip log --- libraries/core_libs/consensus/src/dag/dag_manager.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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) {