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 Doppelganger Check #10582

Merged
merged 3 commits into from
Apr 29, 2022
Merged

Fix Doppelganger Check #10582

merged 3 commits into from
Apr 29, 2022

Conversation

nisdas
Copy link
Member

@nisdas nisdas commented Apr 29, 2022

What type of PR is this?

Bug Fix

What does this PR do? Why is it needed?

In #9969 , we adapted out doppelganger check to altair. However, we introduced an off by 1 bug in the number of states to check. Due to how the doppelganger check works, we cannot perform the check for validator's that have attested in the previous 2 epochs.

This PR also changes how we fetch the previous state, instead preferring to fetch till the end of the epoch.

Which issues(s) does this PR fix?

N.A

Other notes for review

@nisdas nisdas requested a review from a team as a code owner April 29, 2022 10:19
@nisdas nisdas added the Priority: High High priority item label Apr 29, 2022
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.

Core changes are right. Haven't checked tests yet

@prylabs-bulldozer prylabs-bulldozer bot merged commit ad03938 into develop Apr 29, 2022
@delete-merged-branch delete-merged-branch bot deleted the fixDoppelganger branch April 29, 2022 17:19
prestonvanloon pushed a commit that referenced this pull request Apr 29, 2022
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>
(cherry picked from commit ad03938)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Priority: High High priority item
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants