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

Add sync committee tests with exited and withdrawable members #2591

Merged
merged 2 commits into from Sep 9, 2021
Merged

Add sync committee tests with exited and withdrawable members #2591

merged 2 commits into from Sep 9, 2021

Conversation

ralexstokes
Copy link
Member

It is possible for members of the current sync committee to be in the exited or withdrawable validator lifecycle states.

This PR adds (spec) tests to ensure clients can handle these cases.

Copy link
Contributor

@djrtwo djrtwo left a comment

Choose a reason for hiding this comment

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

Test looks good. I recommend reducing the copy paste with a runner function. Or at least a function in the middle that can be called to prepare an exited and/or withdrawable validator

You also could remove a lot of the logic by manually manipulating exit_epoch and withdrawable_epoch. that said, your call

Copy link
Contributor

@djrtwo djrtwo left a comment

Choose a reason for hiding this comment

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

very nice

Copy link
Contributor

@djrtwo djrtwo left a comment

Choose a reason for hiding this comment

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

very nice (this time clicked approve)!

@djrtwo djrtwo merged commit a3e2e79 into ethereum:dev Sep 9, 2021
@ralexstokes ralexstokes deleted the add-exited-sync-comm-member-test branch September 10, 2021 16:05
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.

None yet

2 participants