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 ancestor to return most recent root in the case of skip slot #6242

Merged
merged 5 commits into from
Jun 14, 2020

Conversation

terencechain
Copy link
Member

What type of PR is this?

Bug fix

What does this PR do? Why is it needed?
The ancestor function is old and hasn't been updated in a while. In the event of a skip slot, the ancestor function should return most recent root prior to slot. Instead, it was returning nil.

Other notes for review
Tested run time to and verified it fixed FFG and LMD votes are not consistent issue

@terencechain terencechain added the Ready For Review A pull request ready for code review label Jun 14, 2020
@terencechain terencechain requested a review from a team as a code owner June 14, 2020 06:24
@terencechain terencechain self-assigned this Jun 14, 2020
@prylabs-bulldozer prylabs-bulldozer bot merged commit 87ba5a5 into master Jun 14, 2020
@delete-merged-branch delete-merged-branch bot deleted the fix-ancestor branch June 14, 2020 06:58
lee51525125 pushed a commit to lee51525125/prysm that referenced this pull request Jun 15, 2020
…smaticlabs#6242)

* Revert "remove excess copies (prysmaticlabs#6142)"

This reverts commit c956905.
* Update ancestor function to handle skip slot
* Test
* Revert "Revert "remove excess copies (prysmaticlabs#6142)""

This reverts commit f1222b5.
* Merge refs/heads/master into fix-ancestor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Ready For Review A pull request ready for code review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants