address comments, pr #643

This commit is contained in:
Zach Ramsay 2017-10-03 18:12:17 -04:00 committed by Ethan Buchman
parent 9c62ed4595
commit 563faa98de
4 changed files with 4 additions and 2 deletions

View File

@ -313,7 +313,7 @@ func (pool *BlockPool) makeNextRequester() {
_, err := request.Start()
if err != nil {
pool.Logger.Error("Error starting block pool", "err", err)
request.Logger.Error("Error starting request", "err", err)
}
}

View File

@ -49,6 +49,7 @@ func ResetAll(dbDir, privValFile string, logger log.Logger) {
resetPrivValidatorLocal(privValFile, logger)
if err := os.RemoveAll(dbDir); err != nil {
logger.Error("Error removing directory", "err", err)
return
}
logger.Info("Removed all data", "dir", dbDir)
}

View File

@ -99,7 +99,7 @@ func (conR *ConsensusReactor) SwitchToConsensus(state *sm.State, blocksSynced in
}
_, err := conR.conS.Start()
if err != nil {
conR.Logger.Error("Error starting conR", "err", err)
conR.Logger.Error("Error starting conS", "err", err)
}
}

View File

@ -260,6 +260,7 @@ func (cs *ConsensusState) startRoutines(maxSteps int) {
_, err := cs.timeoutTicker.Start()
if err != nil {
cs.Logger.Error("Error starting timeout ticker", "err", err)
return
}
go cs.receiveRoutine(maxSteps)
}