-
Notifications
You must be signed in to change notification settings - Fork 1.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
Issue validator warning when beacon node does not use builder #11203
Conversation
beacon-chain/builder/service.go
Outdated
@@ -112,7 +115,7 @@ func (s *Service) Status() error { | |||
getStatusLatency.Observe(float64(time.Since(start).Milliseconds())) | |||
}() | |||
|
|||
// Return early if builder isn't initialized in service. | |||
// Return early if builder isn't initilized in service. |
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.
// Return early if builder isn't initilized in service. | |
// Return early if builder isn't initialized in service. |
validator/client/registration.go
Outdated
@@ -30,6 +32,10 @@ func SubmitValidatorRegistrations( | |||
if _, err := validatorClient.SubmitValidatorRegistrations(ctx, ðpb.SignedValidatorRegistrationsV1{ | |||
Messages: signedRegs, | |||
}); err != nil { | |||
if strings.Contains(err.Error(), builder.ErrNoBuilder.Error()) { | |||
log.Warnln("Beacon node does not utilize a custom builder. Validator registration skipped.") |
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.
Is there anything you can add here to give information to the user on how to correct the issue? I.e. "Restart your beacon node with the --mev-relay flag" or something like that
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.
+1, I think more verbosity will be nice here such as validator keys and such
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 added the flag name to the log. It impacts all validator keys, so there's no need to add any.
What type of PR is this?
UX
What does this PR do? Why is it needed?
If the validator uses
--enable-builder
, but the beacon node does not use--http-mev-relay
, then a warning will be displayed. This also works when failing over to a node without--http-mev-relay
.Which issues(s) does this PR fix?
Fixes #11181