diff --git a/abci/types/types.go b/abci/types/types.go index 04561a508..3955e7af0 100644 --- a/abci/types/types.go +++ b/abci/types/types.go @@ -53,11 +53,11 @@ func (r ResponseQuery) IsErr() bool { return r.Code != CodeTypeOK } -func (r ResponsePrepareProposal) UnknownModifiedTx() bool { +func (r ResponsePrepareProposal) IsTxStatusUnknown() bool { return r.ModifiedTxStatus == ResponsePrepareProposal_UNKNOWN } -func (r ResponsePrepareProposal) TxModified() bool { +func (r ResponsePrepareProposal) IsTxStatusModified() bool { return r.ModifiedTxStatus == ResponsePrepareProposal_MODIFIED } @@ -69,8 +69,8 @@ func (r ResponseProcessProposal) IsStatusUnknown() bool { return r.Status == ResponseProcessProposal_UNKNOWN } -// IsUnknown returns true if Code is Unknown -func (r ResponseVerifyVoteExtension) IsUnknown() bool { +// IsStatusUnknown returns true if Code is Unknown +func (r ResponseVerifyVoteExtension) IsStatusUnknown() bool { return r.Status == ResponseVerifyVoteExtension_UNKNOWN } diff --git a/internal/state/execution.go b/internal/state/execution.go index d2cfc27ba..7010010da 100644 --- a/internal/state/execution.go +++ b/internal/state/execution.go @@ -140,11 +140,11 @@ func (blockExec *BlockExecutor) CreateProposalBlock( // purpose for now. panic(err) } - if rpp.UnknownModifiedTx() { + if rpp.IsTxStatusUnknown() { panic(fmt.Sprintf("PrepareProposal responded with ModifiedTxStatus %s", rpp.ModifiedTxStatus.String())) } - if !rpp.TxModified() { + if !rpp.IsTxStatusModified() { return block, nil } txrSet := types.NewTxRecordSet(rpp.TxRecords)