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

Issue validator warning when beacon node does not use builder #11203

Merged
merged 5 commits into from
Aug 11, 2022

Conversation

rkapka
Copy link
Contributor

@rkapka rkapka commented Aug 11, 2022

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

@rkapka rkapka added Builder PR or issue that supports builder related work UX cosmetic / user experience related labels Aug 11, 2022
@rkapka rkapka requested a review from a team as a code owner August 11, 2022 12:09
@rkapka rkapka requested review from kasey, potuz and terencechain August 11, 2022 12:09
@@ -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.
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
// Return early if builder isn't initilized in service.
// Return early if builder isn't initialized in service.

@@ -30,6 +32,10 @@ func SubmitValidatorRegistrations(
if _, err := validatorClient.SubmitValidatorRegistrations(ctx, &ethpb.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.")
Copy link
Member

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

Copy link
Member

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

Copy link
Contributor Author

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.

@rauljordan rauljordan merged commit 252086a into develop Aug 11, 2022
@delete-merged-branch delete-merged-branch bot deleted the builder-log branch August 11, 2022 19:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Builder PR or issue that supports builder related work UX cosmetic / user experience related
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Validator registration on non-builder beacon node
4 participants