Skip to content

Commit

Permalink
Fix s3 view ID initialization (#2958)
Browse files Browse the repository at this point in the history
* fix viewID init number

* minor change
  • Loading branch information
rlan35 authored May 8, 2020
1 parent 8e6d671 commit 98bf1d1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/harmony/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -508,9 +508,9 @@ func setupConsensusAndNode(nodeConfig *nodeconfig.ConfigType) *node.Node {
"shardID", *shardID)
}

// Set the consensus ID to be the current block number
// 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")
Expand Down

0 comments on commit 98bf1d1

Please sign in to comment.