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 Gossip Handler For BLS To Execution Changes #11690

Merged
merged 15 commits into from
Nov 26, 2022
Merged

Conversation

nisdas
Copy link
Member

@nisdas nisdas commented Nov 25, 2022

What type of PR is this?

Feature For Withdrawals

What does this PR do? Why is it needed?

  • Add in Gossip handler for BLS to Execution Objects
  • Add in gossip topic for bls to execution change objects.
  • Add in method to our operations pools to check for previously included validator indexes
  • Add respective tests for gossip handlers.

Which issues(s) does this PR fix?

Part of #11077

Other notes for review

@nisdas nisdas requested a review from a team as a code owner November 25, 2022 01:53
@@ -473,6 +475,28 @@ func defaultVoluntaryExitTopicParams() *pubsub.TopicScoreParams {
}
}

func defaultBlsToExecutionChangeTopicParams() *pubsub.TopicScoreParams {
return &pubsub.TopicScoreParams{
TopicWeight: voluntaryExitWeight,
Copy link
Contributor

Choose a reason for hiding this comment

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

If this weight is really going to be a constant then we need to return the same as above and avoid code duplication.

Copy link
Member Author

Choose a reason for hiding this comment

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

good catch, this is the incorrect weight. I will have to set a new one for our scoring params

// Validate the signature of the message using our batch gossip verifier.
sigBatch, err := blocks.BLSChangesSignatureBatch(ctx, st, []*ethpb.SignedBLSToExecutionChange{blsChange})
if err != nil {
return pubsub.ValidationReject, err
Copy link
Member

Choose a reason for hiding this comment

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

I can see a counterargument on why this should be ValidationIgnore. I think it's close between the two

@terencechain terencechain merged commit a23a505 into develop Nov 26, 2022
@delete-merged-branch delete-merged-branch bot deleted the addBLSToExecChanges branch November 26, 2022 19:07
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.

3 participants