use accept instead of IsOK Method

This commit is contained in:
William Banfield
2022-02-21 16:48:36 -05:00
parent 19f96114ce
commit 77e0dc8a24
2 changed files with 1 additions and 6 deletions

View File

@@ -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)

View File

@@ -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.