-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
Gaia lite batch endpoint for validator signing info #3226
Comments
Great idea @faboweb! |
This currently is 100 requests when we open the validators page. |
I will like to have the first one as we have other routes that share that prefix |
but then it conflicts with |
Upvote. This is really annoying in production. |
@faboweb I presume you want just bonded validators, not all validators? |
@sabau @fedekunze any interest in picking this up? Good intro into the REST client. |
does it make it difference? |
I agree, it conflict with the current route. I think some routes hasn't been pre-designed so it's easy to fall in this now. Either having a keyword that says Usually I would like instead to push variables as close to the end as possible to avoid those cases, as when you do when you use the CLI. Or in distribution for example in: Of course this need discussion and can't be done in this PR |
Interesting proposal @sabau. I agree with some of those routes, but we should also keep in mind they should be grouped by (REST) resource. e.g. |
Regarding that it's true if you see the delegator as resource and the reward as detail of that. |
Also remove duplicate pagination: - move function to extract query params into types/rest - adjust pagination values locally until available in tendermint for validators Code cleanup: - helper function in test - fix pagination description in swagger.yaml - uint instead of int when possible Closes: #3226 Closes: #3991
Summary
We need to query the signing info for ever validator. This means several requests which takes a while. Let's add a batch endpoint as you usually will want to query all the info at once.
Proposal:
/slashing/validators/signing_info
or/slashing/validators
Problem Definition
Proposal
For Admin Use
The text was updated successfully, but these errors were encountered: