Skip to content
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

account: provide delegations_to instead #348

Closed
wants to merge 1 commit into from

Conversation

pro-wh
Copy link
Collaborator

@pro-wh pro-wh commented May 26, 2022

oasis-node does not handle GetDelegations efficiently. This changes
the gateway to use GetDelegationsTo, which the node can answer
efficiently.


ok and from #61/#62, it seems we didn't specifically want delegations from, and the issue looks like it was written to call for either of them. at this point, we know that the node software can much more easily list delegations to an account and debonding delegations "from" an account, so I'm proposing that we move to those.

for users relying on the previous delegations "from" behavior, you'll have to stay on the 2.x.x stable branches, and we should maintain that for some amount of time.

I intend for us to upgrade any of our own deployments to include this change.

fixes #347

oasis-node does not handle GetDelegations efficiently. This changes
the gateway to use GetDelegationsTo, which the node can answer
efficiently.
@pro-wh pro-wh force-pushed the pro-wh/feature/delegations branch from 05e129b to 9eef5f7 Compare May 26, 2022 20:40
@pro-wh
Copy link
Collaborator Author

pro-wh commented May 26, 2022

sad note: one of the gateways we use times out trying to get delegations from, so at least we know that nothing is usefully relying on it 😬

@pro-wh pro-wh marked this pull request as draft October 31, 2022 21:00
@pro-wh
Copy link
Collaborator Author

pro-wh commented Oct 31, 2022

"delegations to" is not efficient either. converting this to draft

@pro-wh
Copy link
Collaborator Author

pro-wh commented Nov 9, 2022

oasisprotocol/oasis-core#5023 with any luck, we'll have efficient DelegationsFor in the same timeframe, so we won't have to merge this change

@pro-wh
Copy link
Collaborator Author

pro-wh commented Nov 29, 2023

this is now quite fast in 23.0.x

@pro-wh pro-wh closed this Nov 29, 2023
@pro-wh pro-wh deleted the pro-wh/feature/delegations branch November 29, 2023 19:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

/accounts/balance hangs
1 participant