Skip to content

Commit

Permalink
GH-1510 Add log for switching to instant finality
Browse files Browse the repository at this point in the history
  • Loading branch information
heifner committed Dec 18, 2023
1 parent 50527a7 commit 84c9033
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions libraries/chain/hotstuff/chain_pacemaker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,7 @@ namespace eosio::chain {
if (ext) {
std::scoped_lock g( _chain_state_mutex );
if (_active_finalizer_policy.generation == 0) {
ilog("Switching to instant finality at block ${b}", ("b", blk->block_num));
// switching from dpos to hotstuff, all nodes will switch at same block height
// block header extension is set in finalize_block to value set by host function set_finalizers
_chain->set_hs_irreversible_block_num(blk->block_num); // can be any value <= dpos lib
Expand Down

0 comments on commit 84c9033

Please sign in to comment.