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 withdrawal epoch overflows #10739

Merged
merged 2 commits into from
May 23, 2022
Merged

Conversation

terencechain
Copy link
Member

Ensures withdrawal epoch doesn't overflow. Part of spec test updates to v1.2.0-rc.1
Please merge this before #10665

@terencechain terencechain self-assigned this May 23, 2022
@terencechain terencechain marked this pull request as ready for review May 23, 2022 17:53
@terencechain terencechain requested a review from a team as a code owner May 23, 2022 17:53
@terencechain terencechain requested review from saolyn, potuz and rkapka May 23, 2022 17:53
require.NoError(t, err, "Could not process registry updates")
return state, nil
func processRegistryUpdatesWrapper(_ *testing.T, state state.BeaconState) (state.BeaconState, error) {
return epoch.ProcessRegistryUpdates(context.Background(), state)
Copy link
Member Author

Choose a reason for hiding this comment

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

Spec test requires this test to fail. In this case, we don't want to error out, and we want to return the error to the caller and the caller can decide whether to pass or fail

rauljordan
rauljordan previously approved these changes May 23, 2022
james-prysm
james-prysm previously approved these changes May 23, 2022
Copy link
Contributor

@james-prysm james-prysm left a comment

Choose a reason for hiding this comment

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

LGTM

@terencechain terencechain dismissed stale reviews from james-prysm and rauljordan via 3d3381a May 23, 2022 19:59
@prylabs-bulldozer prylabs-bulldozer bot merged commit 46c0579 into develop May 23, 2022
@delete-merged-branch delete-merged-branch bot deleted the withdrawal-overflows branch May 23, 2022 21:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants