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 block proposer out of v1alpha1 #12927

Closed
wants to merge 10 commits into from
Closed

Conversation

rkapka
Copy link
Contributor

@rkapka rkapka commented Sep 19, 2023

What type of PR is this?

Cleanup

What does this PR do? Why is it needed?

Moves proposer code out of rpc/prysm/v1alpha1 and into rpc/core. This has the following benefits:

  • HTTP handlers no longer rely on a Server type declared in v1alpha1
  • Deprecating v1alpha1 will be much easier, now that all core proposing logic is outside

@rkapka rkapka requested a review from a team as a code owner September 19, 2023 17:22
@rkapka rkapka marked this pull request as draft September 19, 2023 17:22
@rkapka rkapka marked this pull request as ready for review September 20, 2023 16:09
@@ -93,7 +93,7 @@ func MakeAttestationsFromBitlists(bl []bitfield.Bitlist) []*ethpb.Attestation {
}

// MakeSyncContributionsFromBitVector creates list of sync contributions from list of bitvector.
func MakeSyncContributionsFromBitVector(bl []bitfield.Bitvector128) []*ethpb.SyncCommitteeContribution {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This had to change because I included proposer_utils_bench_test.go in the test bazel rule in the core package, which was not present in the v1alpha1 package. Including the file led to incompatibility with minimal config.

Comment on lines +12 to +16
logrus.SetLevel(logrus.DebugLevel)
logrus.SetOutput(io.Discard)
prevConfig := params.BeaconConfig().Copy()
defer params.OverrideBeaconConfig(prevConfig)
params.OverrideBeaconConfig(params.MinimalSpecConfig())
Copy link
Contributor Author

Choose a reason for hiding this comment

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

copied directly from v1alpha1

@rkapka rkapka mentioned this pull request Sep 27, 2023
20 tasks
@rkapka rkapka closed this Feb 16, 2024
@rkapka rkapka deleted the move-proposing-to-core branch February 16, 2024 09:44
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.

1 participant