Skip to content

Commit

Permalink
add debug logs
Browse files Browse the repository at this point in the history
  • Loading branch information
dungeon-master-666 committed Jan 11, 2024
1 parent 356b689 commit c065272
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions validator/impl/liteserver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -624,6 +624,11 @@ void LiteQuery::continue_lookupBlock_getMcBlockPrev(BlockIdExt blkid, BlockIdExt
return;
}
if (!block::check_old_mc_block_id(*prev_blocks_dict, client_mc_blkid)) {
int n = 0;
for (const auto &x : *prev_blocks_dict) {
n++;
}
LOG(ERROR) << "prev_blocks_dict contains " << n << " entries";
fatal_error(td::Status::Error("client mc blkid is not in prev_blocks"));
return;
}
Expand Down

0 comments on commit c065272

Please sign in to comment.