Merge pull request #1999 from chaosma/view-id-init

initalize viewID need to increase from previous block number
pull/2007/head
Rongjian Lan 5 years ago committed by GitHub
commit 597ec7bccb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      cmd/harmony/main.go

@ -387,7 +387,7 @@ func setupConsensusAndNode(nodeConfig *nodeconfig.ConfigType) *node.Node {
// Set the consensus ID to be the current block number
viewID := currentNode.Blockchain().CurrentBlock().Header().ViewID().Uint64()
currentConsensus.SetViewID(viewID)
currentConsensus.SetViewID(viewID + 1)
utils.Logger().Info().
Uint64("viewID", viewID).
Msg("Init Blockchain")

Loading…
Cancel
Save