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

validator self delegation query #3936

Closed
4 tasks
fedekunze opened this issue Mar 19, 2019 · 3 comments
Closed
4 tasks

validator self delegation query #3936

fedekunze opened this issue Mar 19, 2019 · 3 comments

Comments

@fedekunze
Copy link
Collaborator

Summary

Add support for querying a validator self delegation percentage

Problem Definition

I'd like to query what's the validator self delegation percentage to know which validator has more skin in the game.

Proposal

  • Add a SelfDelegation property on the Validator struct to display the current self delegation of a validator. Updated at every endBlock (if power changes)

For Admin Use

  • Not duplicate issue
  • Appropriate labels applied
  • Appropriate contributors tagged
  • Contributor assigned/self-assigned
@alexanderbez
Copy link
Contributor

I perhaps will be a useful feature to add these queries to the REST interfaces. I'm not sure we want to increase state storage for this though (i.e. we shouldn't add a field to the validator if we dont need to).

@github-actions
Copy link
Contributor

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@tac0turtle
Copy link
Member

this is already possible by querying the validator itself. Don't think we need an extra query. Ill close this issue for now.

To add, with sql indexing of state landing soon (tm) queries like this won't be needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants