mirror of
https://github.com/tendermint/tendermint.git
synced 2026-02-12 06:41:31 +00:00
use accept instead of IsOK Method
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user