Skip to content

Commit

Permalink
Merge branch 'develop' into master2dev
Browse files Browse the repository at this point in the history
  • Loading branch information
MatusKysel authored Feb 26, 2024
2 parents 61fc875 + 03c0e6d commit 16ae166
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions libraries/core_libs/consensus/src/dag/dag_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 16ae166

Please sign in to comment.