From dc93228ffb41d6554770afff33f4dfd3a5b11b7e Mon Sep 17 00:00:00 2001 From: William Banfield Date: Mon, 14 Feb 2022 17:58:23 -0500 Subject: [PATCH] update panic message around process proposal --- internal/consensus/state.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/internal/consensus/state.go b/internal/consensus/state.go index b355905aa..004a8cfac 100644 --- a/internal/consensus/state.go +++ b/internal/consensus/state.go @@ -1516,11 +1516,9 @@ func (cs *State) defaultDoPrevote(ctx context.Context, height int64, round int32 liveness properties. Please see `PrepareProosal`-`ProcessProposal` coherence and determinism properties in the ABCI++ specification. */ - stateMachineValidBlock, err := cs.blockExec.ProcessProposal(ctx, cs.ProposalBlock, cs.state.InitialHeight) + stateMachineValidBlock, err := cs.blockExec.ProcessProposal(ctx, cs.ProposalBlock, cs.state) if err != nil { - panic(fmt.Sprintf( - "state machine returned an error (%v) when calling ProcessProposal", err, - )) + panic(fmt.Sprintf("ProcessProposal: %v", err)) } // Vote nil if the Application rejected the block