PanicCrisis is deprecated

This commit is contained in:
Anton Kaliaev 2017-12-15 11:59:45 -06:00
parent 709cf18aef
commit e40689b9cc
No known key found for this signature in database
GPG Key ID: 7B6881D965918214
1 changed files with 1 additions and 1 deletions

View File

@ -138,7 +138,7 @@ func (cs *ConsensusState) catchupReplay(csHeight int64) error {
break break
} else if IsDataCorruptionError(err) { } else if IsDataCorruptionError(err) {
cs.Logger.Debug("data has been corrupted in last height of consensus WAL", "err", err, "height", csHeight) cs.Logger.Debug("data has been corrupted in last height of consensus WAL", "err", err, "height", csHeight)
cmn.PanicCrisis(fmt.Sprintf("data has been corrupted (%v) in last height %d of consensus WAL", err, csHeight)) panic(fmt.Sprintf("data has been corrupted (%v) in last height %d of consensus WAL", err, csHeight))
} else if err != nil { } else if err != nil {
return err return err
} }