Addressed William's comment on ProcessProposal error

This commit is contained in:
Sergio Mena
2022-02-08 09:33:55 +01:00
parent d6d61a3047
commit e9d17d0e36

View File

@@ -1278,7 +1278,9 @@ func (cs *State) defaultDoPrevote(height int64, round int32) {
stateMachineValidBlock, err := cs.blockExec.ProcessProposal(cs.ProposalBlock)
if err != nil {
cs.Logger.Error("state machine returned an error when trying to process proposal block", "err", err)
panic(fmt.Sprintf(
"state machine returned an error (%v) when calling ProcessProposal", err,
))
}
// Vote nil if application invalidated the block