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

Replay state to current slot in StateBySlot #11858

Merged
merged 2 commits into from
Jan 11, 2023
Merged

Conversation

rkapka
Copy link
Contributor

@rkapka rkapka commented Jan 10, 2023

What type of PR is this?

Bug fix

What does this PR do? Why is it needed?

The following error is observed in Lighthouse validator's logs during multi-client e2e:

Could not get state: requested slot number is higher than head slot number

This happens when there are skipped slots between head state slot and current slot. When fetching state by slot we should replay the state up to the current slot instead of returning an error.

@rkapka rkapka marked this pull request as ready for review January 11, 2023 13:10
@rkapka rkapka requested a review from a team as a code owner January 11, 2023 13:10
@rkapka rkapka requested review from saolyn, potuz and nisdas January 11, 2023 13:10
@rkapka rkapka merged commit 505ff6e into develop Jan 11, 2023
@rkapka rkapka deleted the replay-state-to-slot branch January 11, 2023 13:53
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