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

Fix Next State Mismatch #12247

Merged
merged 2 commits into from
Apr 6, 2023
Merged

Fix Next State Mismatch #12247

merged 2 commits into from
Apr 6, 2023

Conversation

nisdas
Copy link
Member

@nisdas nisdas commented Apr 6, 2023

What type of PR is this?

Bug Fix

What does this PR do? Why is it needed?

In E2E a few of our runs were constantly failing with could not process slots: expected state.slot 289 < slot 288 . After an investigation it was determined that #12233 added the ability for our cache to store different states with the same parent root. To allow the next slot cache to return the correctly desired state to the caller, we added in a wantedSlot parameter which should allow states with the desired slots to be returned.

A simple regression test was also added for this.

Which issues(s) does this PR fix?

N.A

Other notes for review

@nisdas nisdas added Ready For Review A pull request ready for code review Priority: High High priority item labels Apr 6, 2023
@nisdas nisdas requested a review from a team as a code owner April 6, 2023 08:54
Copy link
Contributor

@potuz potuz left a comment

Choose a reason for hiding this comment

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

This PR removes a few hits that would be helpful and prevent epoch transition from being computed twice. For example when the state has been advanced but not enough. Discussing the other issues offline

@nisdas nisdas merged commit aad7aa7 into develop Apr 6, 2023
@delete-merged-branch delete-merged-branch bot deleted the fixNextStateMismatch branch April 6, 2023 09:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Priority: High High priority item Ready For Review A pull request ready for code review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants