From 5faeb5f79a5a48cddf5576a8a7302729f89f2ac0 Mon Sep 17 00:00:00 2001 From: Konstantin <355847+Frozen@users.noreply.github.com> Date: Mon, 23 Oct 2023 08:20:27 -0800 Subject: [PATCH] Call `UpdateConsensusInformation` after bingo. (#4542) --- node/node_handler.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/node/node_handler.go b/node/node_handler.go index 92c3396d4..eeaf90f2d 100644 --- a/node/node_handler.go +++ b/node/node_handler.go @@ -350,6 +350,9 @@ func (node *Node) PostConsensusProcessing(newBlock *types.Block) error { Int("numStakingTxns", len(newBlock.StakingTransactions())). Uint32("numSignatures", numSignatures). Msg("BINGO !!! Reached Consensus") + if node.Consensus.Mode() == consensus.Syncing { + node.Consensus.SetMode(node.Consensus.UpdateConsensusInformation()) + } node.Consensus.UpdateValidatorMetrics(float64(numSignatures), float64(newBlock.NumberU64()))