initalize viewID need to increase from previous block number

pull/1999/head
chao 5 years ago
parent 23b42e5747
commit 7e253b5ca7
  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