start timer after sync

pull/3446/head
Rongjian Lan 4 years ago
parent 91cf0026ae
commit 745e2f7672
  1. 1
      consensus/consensus_v2.go

@ -325,6 +325,7 @@ func (consensus *Consensus) Start(
consensus.SetViewIDs(consensus.Blockchain.CurrentHeader().ViewID().Uint64() + 1) consensus.SetViewIDs(consensus.Blockchain.CurrentHeader().ViewID().Uint64() + 1)
mode := consensus.UpdateConsensusInformation() mode := consensus.UpdateConsensusInformation()
consensus.current.SetMode(mode) consensus.current.SetMode(mode)
consensus.consensusTimeout[timeoutConsensus].Start()
consensus.getLogger().Info().Str("Mode", mode.String()).Msg("Node is IN SYNC") consensus.getLogger().Info().Str("Mode", mode.String()).Msg("Node is IN SYNC")
} }
consensus.mutex.Unlock() consensus.mutex.Unlock()

Loading…
Cancel
Save