diff --git a/abci/types/result.go b/abci/types/result.go index afa2aced9..d899b771a 100644 --- a/abci/types/result.go +++ b/abci/types/result.go @@ -58,11 +58,6 @@ func (r ResponseVerifyVoteExtension) IsErr() bool { return r.Result != ResponseVerifyVoteExtension_ACCEPT } -// IsOK returns true if Code is OK -func (r ResponseProcessProposal) IsOK() bool { - return r.Accept -} - //--------------------------------------------------------------------------- // override JSON marshaling so we emit defaults (ie. disable omitempty) diff --git a/internal/state/execution.go b/internal/state/execution.go index 32ca0d514..2b5721da1 100644 --- a/internal/state/execution.go +++ b/internal/state/execution.go @@ -166,7 +166,7 @@ func (blockExec *BlockExecutor) ProcessProposal( return false, ErrInvalidBlock(err) } - return resp.IsOK(), nil + return resp.Accept, nil } // ValidateBlock validates the given block against the given state.