-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Conversation
@@ -473,6 +475,28 @@ func defaultVoluntaryExitTopicParams() *pubsub.TopicScoreParams { | |||
} | |||
} | |||
|
|||
func defaultBlsToExecutionChangeTopicParams() *pubsub.TopicScoreParams { | |||
return &pubsub.TopicScoreParams{ | |||
TopicWeight: voluntaryExitWeight, |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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
What type of PR is this?
Feature For Withdrawals
What does this PR do? Why is it needed?
Which issues(s) does this PR fix?
Part of #11077
Other notes for review