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

Add stake table endpoint #2302

Merged
merged 2 commits into from
Nov 19, 2024
Merged

Add stake table endpoint #2302

merged 2 commits into from
Nov 19, 2024

Conversation

rob-maron
Copy link
Contributor

@rob-maron rob-maron commented Nov 19, 2024

This PR:

Adds a stake table endpoint to sequencer nodes at /node to both:

  • Get the stake table at the current epoch (/node/stake-table/current)
  • Get the stake table at a specific epoch (/node/stake-table/:epoch_number)

We need this for components like the CDN and state prover to get the stake table without needing to run a lightweight node

Key places to review:

api.rs

Copy link
Member

@jbearer jbearer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@rob-maron rob-maron merged commit 2822f98 into main Nov 19, 2024
19 checks passed
@rob-maron rob-maron deleted the rm/fetch-stake-table branch November 19, 2024 20:47
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.

2 participants