From e9d17d0e368fd3cb998cdb960aa6ccaba0cb2224 Mon Sep 17 00:00:00 2001 From: Sergio Mena Date: Tue, 8 Feb 2022 09:33:55 +0100 Subject: [PATCH] Addressed William's comment on ProcessProposal error --- consensus/state.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/consensus/state.go b/consensus/state.go index e9d8b4a35..31a94238b 100644 --- a/consensus/state.go +++ b/consensus/state.go @@ -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