Skip to content

Commit

Permalink
fix: dag missing tip
Browse files Browse the repository at this point in the history
  • Loading branch information
mfrankovi committed Mar 28, 2023
1 parent 5777eab commit 2b915e3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion libraries/core_libs/consensus/src/dag/dag_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -675,7 +675,8 @@ 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);
assert(tip_blk);
LOG(log_er_) << "DAG Block " << block_hash << " tip " << t << " not present";
if (tip_blk == nullptr) return VerifyBlockReturnType::FailedTipsVerification;
block_gas_estimation += tip_blk->getGasEstimation();
}
if (block_gas_estimation > kPbftGasLimit) {
Expand Down

0 comments on commit 2b915e3

Please sign in to comment.