cs: exit if SwitchToConsensus fails (#3706)

Refs #3656
This commit is contained in:
Anton Kaliaev
2019-06-22 19:48:01 +04:00
committed by Ethan Buchman
parent 1b77bf6f20
commit 3e7752c29d
2 changed files with 8 additions and 2 deletions

View File

@ -116,8 +116,13 @@ func (conR *ConsensusReactor) SwitchToConsensus(state sm.State, blocksSynced int
}
err := conR.conS.Start()
if err != nil {
conR.Logger.Error("Error starting conS", "err", err)
return
panic(fmt.Sprintf(`Failed to start consensus state: %v
conS:
%+v
conR:
%+v`, err, conR.conS, conR))
}
}