-
Notifications
You must be signed in to change notification settings - Fork 60
Open
Description
Describe the bug
pagination.limit option doesn't work properly in some rest-api
Below is an example for /cosmos/base/tendermint/v1beta1/validatorsets/.
There are currently 125 active validators on the network, but only 100 are queried.
To Reproduce
$ curl -s localhost:1317/cosmos/base/tendermint/v1beta1/validatorsets/latest?pagination.limit=1
{
"block_height": "346116",
"validators": [
{
"address": "rizonvalcons10gf5ht2ppn59ldza3lmzntnkph8g4xf4z7d0ju",
"pub_key": {
"@type": "/cosmos.crypto.ed25519.PubKey",
"key": "yJDSb+Rg8F3gv1ToYtcl4bLZCnXvC1bU/JlCb3w9NYI="
},
"voting_power": "1004565",
"proposer_priority": "722908"
}
],
"pagination": null
}
$ curl -s localhost:1317/cosmos/base/tendermint/v1beta1/validatorsets/latest?pagination.limit=100 | jq .validators[99]
{
"address": "rizonvalcons1n0j5gp5waarswz20a033tks68yqttyate6a4yg",
"pub_key": {
"@type": "/cosmos.crypto.ed25519.PubKey",
"key": "+LZpUaNy4A6UP+36TsPGsQc8vsw9sb2d+Ucak/ap3vg="
},
"voting_power": "5692",
"proposer_priority": "-1414328"
}
$ curl -s localhost:1317/cosmos/base/tendermint/v1beta1/validatorsets/latest?pagination.limit=200 | jq .validators[100]
null
Context & versions
Network: groot-011
$ rizond version --long
name: rizon
server_name: rizond
version: v0.2.3
commit: d119dfc0c8d7a44f12dc4c06b2413936a748f75e
build_tags: Linux
go: go version go1.15.11 linux/amd64
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels