Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: remove incorrect missing tip log #2700

Merged
merged 1 commit into from
Feb 26, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading