From 77e0dc8a2483519afe0c63bf2b9281f5484c05bc Mon Sep 17 00:00:00 2001 From: William Banfield Date: Mon, 21 Feb 2022 16:48:36 -0500 Subject: [PATCH] use accept instead of IsOK Method --- abci/types/result.go | 5 ----- internal/state/execution.go | 2 +- 2 files changed, 1 insertion(+), 6 deletions(-) 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.