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

Move computeCheckpoints to private #10874

Merged
merged 6 commits into from
Jun 14, 2022
Merged

Move computeCheckpoints to private #10874

merged 6 commits into from
Jun 14, 2022

Conversation

terencechain
Copy link
Member

Since computeCheckpoints is only used within precompute pkg, we don't need to export it. This PR moves it to private while satisfying the test.

@terencechain terencechain self-assigned this Jun 13, 2022
@terencechain terencechain requested a review from a team as a code owner June 13, 2022 23:45
@@ -100,6 +100,8 @@ func weighJustificationAndFinalization(state state.BeaconState, newBits bitfield
return state, nil
}

var ComputeCheckpoints = computeCheckpoints // For test only.
Copy link
Contributor

Choose a reason for hiding this comment

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

this should be in a test file like justification_test.go, with package precompute at the top

@prylabs-bulldozer prylabs-bulldozer bot merged commit a38de90 into develop Jun 14, 2022
@delete-merged-branch delete-merged-branch bot deleted the move-private branch June 14, 2022 09:25
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