Call `UpdateConsensusInformation` after bingo. (#4542)

pull/4544/head
Konstantin 1 year ago committed by GitHub
parent a65f92d0ae
commit 5faeb5f79a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      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()))

Loading…
Cancel
Save