-
Notifications
You must be signed in to change notification settings - Fork 119
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Question]: Endpoint to list consumer chains returns wrong pagination #2305
Comments
Thanks for opening an issue. I don't think this is a bug since you're not providing any pagination instructions (limit). The system is returning the total number of entries so you are able to compare how many records are there in total. This is the intention: Notice in sdk validators that the pagination key is removed if you set the limit: gaiad q staking validators --status BOND_STATUS_BONDED --page-limit 1 --node "https://rpc.cosmos.nodestake.top:443" -o json | jq .
{
"validators": [
{
...
}
],
"pagination": {
"next_key": "FAd6UWZF69GY8QE0QmIbT1fNeIlg"
}
}
➜ It's available if you don't set the limit: gaiad q staking validators --status BOND_STATUS_BONDED --node "https://rpc.cosmos.nodestake.top:443" -o json | jq .
{
"validators": [
{...},
{...},
],
"pagination": {
"next_key": "FIhpiwd4KhTD5FQEDQe93WgZjHgP",
"total": "200"
}
} Do you have different needs from this query that we're currently not handling? Could you tell us more about your usecase? Also, there was a bug - it was fixed here: #2313 |
Problem is that the pagination total returns the total of all consumer chains, not only consumer chains with the phase I queried for. For example when I query consumer chains with phase CONSUMER_PHASE_UNSPECIFIED (like this https://rest.provider-sentry-01.rs-testnet.polypore.xyz/interchain_security/ccv/provider/consumer_chains/0) it gives me |
Is there an existing issue for this?
What happened?
https://rest.provider-sentry-01.rs-testnet.polypore.xyz/interchain_security/ccv/provider/consumer_chains/2
Returns empty
chains
, butpagination.total === '26'
Interchain Security Version
github.com/cosmos/interchain-security/v6@v6.0.0
How to reproduce?
Just query the endpoint above, it's the node on a
provider
chain of ICS testnet.The text was updated successfully, but these errors were encountered: