From 42e38aa4d70cae0e1d6e22ce8372f430bf5ace7f Mon Sep 17 00:00:00 2001 From: Rongjian Lan Date: Sun, 8 Nov 2020 22:15:48 -0800 Subject: [PATCH] start timer after sync --- consensus/consensus_v2.go | 1 + 1 file changed, 1 insertion(+) diff --git a/consensus/consensus_v2.go b/consensus/consensus_v2.go index 515646987..75d0876b0 100644 --- a/consensus/consensus_v2.go +++ b/consensus/consensus_v2.go @@ -325,6 +325,7 @@ func (consensus *Consensus) Start( consensus.SetViewIDs(consensus.Blockchain.CurrentHeader().ViewID().Uint64() + 1) mode := consensus.UpdateConsensusInformation() consensus.current.SetMode(mode) + consensus.consensusTimeout[timeoutConsensus].Start() consensus.getLogger().Info().Str("Mode", mode.String()).Msg("Node is IN SYNC") } consensus.mutex.Unlock()