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 broken exit tests due to change in the churn computation #3690

Merged
merged 1 commit into from
Apr 18, 2024

Conversation

fradamt
Copy link
Contributor

@fradamt fradamt commented Apr 17, 2024

040f3f1 fixes an off-by-one error (or at least weird behavior) of the churn computation in cases when the exiting balance is an exact multiple of the churn (other than 1). This breaks a test which is explicitly intended to check this case, and another one where MAX_EFFECTIVE_BALANCE_ELECTRA is exited, as this is a multiple of the churn. This PR aligns these tests with the new (correct) behavior.

Copy link
Member

@ralexstokes ralexstokes left a comment

Choose a reason for hiding this comment

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

lgtm! thank you!

@ralexstokes ralexstokes merged commit 815485b into ethereum:dev Apr 18, 2024
28 checks passed
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