Use uint64 for consensus.Reactor.SwitchToConsensus() blocksSynced (#4433)

This commit is contained in:
Erik Grinaker
2020-02-19 12:28:34 +01:00
committed by GitHub
parent 6c67e246c3
commit 68f37fff65
4 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -98,7 +98,7 @@ func (conR *Reactor) OnStop() {
// SwitchToConsensus switches from fast_sync mode to consensus mode.
// It resets the state, turns off fast_sync, and starts the consensus state-machine
func (conR *Reactor) SwitchToConsensus(state sm.State, blocksSynced int) {
func (conR *Reactor) SwitchToConsensus(state sm.State, blocksSynced uint64) {
conR.Logger.Info("SwitchToConsensus")
conR.conS.reconstructLastCommit(state)
// NOTE: The line below causes broadcastNewRoundStepRoutine() to