Skip to content

Commit

Permalink
GH-2125 Add additional logging
Browse files Browse the repository at this point in the history
  • Loading branch information
heifner committed Mar 7, 2024
1 parent 389edb7 commit 33fb779
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions libraries/chain/hotstuff/finalizer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ finalizer::vote_result finalizer::decide_vote(const finality_core& core, const b
res.liveness_check = core.latest_qc_block_timestamp() > fsi.lock.timestamp;

if (!res.liveness_check) {
ilog("liveness check failed for ${bn}: ${c} <= ${l}", ("bn", core.current_block_num())("c", core.latest_qc_block_timestamp())("l", fsi.lock.timestamp));
// Safety check : check if this proposal extends the proposal we're locked on
res.safety_check = core.extends(fsi.lock.block_id);
if (!res.safety_check) {
Expand Down

0 comments on commit 33fb779

Please sign in to comment.