From 7e253b5ca75e7878d3c38f51556e01295421cef5 Mon Sep 17 00:00:00 2001 From: chao Date: Mon, 9 Dec 2019 16:21:59 -0800 Subject: [PATCH] initalize viewID need to increase from previous block number --- cmd/harmony/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/harmony/main.go b/cmd/harmony/main.go index 22add61a2..a09226e3c 100644 --- a/cmd/harmony/main.go +++ b/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")