update validate/complete logic for consensus params

This commit is contained in:
William Banfield
2022-01-28 17:41:02 -05:00
parent f50721c36a
commit 31e61d937c
6 changed files with 22 additions and 7 deletions
+1 -1
View File
@@ -269,7 +269,7 @@ func (c *Client) ConsensusParams(ctx context.Context, height *int64) (*coretypes
}
// Validate res.
if err := res.ConsensusParams.ValidateConsensusParams(); err != nil {
if err := res.ConsensusParams.Validate(); err != nil {
return nil, err
}
if res.BlockHeight <= 0 {