Add nil check
@@ -494,11 +494,13 @@ func (cs *consensus) enterPropose() {
} else {
if cs.height > 1 && cs.roundLimit > 0 && cs.round > cs.roundLimit && !cs.sentPatch {
roundEvidences := cs.hvs.getRoundEvidences(cs.roundLimit, cs.nid)
+ if roundEvidences != nil {
err := cs.sm.SendPatch(newSkipPatch(roundEvidences))
if err != nil {
cs.sentPatch = true
}
}
+ }
var err error
cs.cancelBlockRequest, err = cs.bm.Propose(cs.lastBlock.ID(), cs.votes,
func(blk module.Block, err error) {
