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

validators api: use validator history to find inactive validators #774

Open
pro-wh opened this issue Oct 22, 2024 · 0 comments
Open

validators api: use validator history to find inactive validators #774

pro-wh opened this issue Oct 22, 2024 · 0 comments

Comments

@pro-wh
Copy link
Collaborator

pro-wh commented Oct 22, 2024

Currently the /validators endpoint will treat every entity that does not have an active node as an inactive validator. We want to filter this to only return entities that have been a validator at some point in the past, but we do not store this historical data yet.

See this comment thread for more info.

703 should add this historical validator data, which we can then use to filter entities appropriately. Once it is merged, update the /validators api endpoint. 703 may store a set of all past/current validators in the chain.epochs table, which would be a good starting point for the ValidatorsData join query.

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

No branches or pull requests

1 participant