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

added rest api endpoint to fetch closest available slot #8336

Merged
merged 2 commits into from
May 27, 2024

Conversation

rolfyone
Copy link
Contributor

Added /teku/v1/beacon/state/finalized/slot/before/{slot}

This endpoint will return the last stored finalized state before (inclusive) the specified slot.

This should improve the current situation of archive node being slow, as at least you can compute how many states need to be rebuilt.

While this does provide helpful information currently, the better fix is to fix the archive storage.

Documentation

  • I thought about documentation and added the doc-change-required label to this PR if updates are required.

Changelog

  • I thought about adding a changelog entry, and added one if I deemed necessary.

rolfyone added 2 commits May 27, 2024 13:19
Added `/teku/v1/beacon/state/finalized/slot/before/{slot}`

This endpoint will return the last stored finalized state before (inclusive) the specified slot.

This should improve the current situation of archive node being slow, as at least you can compute how many states need to be rebuilt.

While this does provide helpful information currently, the better fix is to fix the archive storage.

Signed-off-by: Paul Harris <[email protected]>
Signed-off-by: Paul Harris <[email protected]>
@rolfyone rolfyone merged commit 32133f9 into Consensys:master May 27, 2024
16 checks passed
@rolfyone rolfyone deleted the finalized_state_idx branch May 27, 2024 06:35
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