Browse Source

swagger default change, change to default in comment

pull/3993/head
Marko Baricevic 5 years ago
parent
commit
e8d16cb803
No known key found for this signature in database GPG Key ID: 1C1A5B44A0E4674D
3 changed files with 3 additions and 3 deletions
  1. +1
    -1
      docs/spec/rpc/swagger.yaml
  2. +1
    -1
      lite/client/provider.go
  3. +1
    -1
      rpc/core/consensus.go

+ 1
- 1
docs/spec/rpc/swagger.yaml View File

@ -541,7 +541,7 @@ paths:
description: "Number of entries per page (max: 100)"
required: false
x-example: 30
default: 0
default: 30
tags:
- Info
description: |


+ 1
- 1
lite/client/provider.go View File

@ -106,7 +106,7 @@ func (p *provider) getValidatorSet(chainID string, height int64) (valset *types.
err = fmt.Errorf("expected height >= 1, got height %v", height)
return
}
res, err := p.client.Validators(&height, 0, 0) // page & perPage are hard coded to 0 to get the entire validator set in one request
res, err := p.client.Validators(&height, 0, 0)
if err != nil {
// TODO pass through other types of errors.
return nil, lerr.ErrUnknownValidators(chainID, height)


+ 1
- 1
rpc/core/consensus.go View File

@ -55,7 +55,7 @@ import (
// |-----------+--------+---------+----------+------------------------------------------------|
// | height | int64 | 0 | false | Height (0 means latest) |
// | page | int | 0 | false | Page number (1-based) |
// | per_page | int | 0 | false | Number of entries per page (max: 100) |
// | per_page | int | 30 | false | Number of entries per page (max: 100) |
func Validators(ctx *rpctypes.Context, heightPtr *int64, page, perPage int) (*ctypes.ResultValidators, error) {
// The latest validator that we know is the


Loading…
Cancel
Save