-
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
Push proposer settings every slot: builder #14155
Changes from 9 commits
5550209
75b6cce
736bd61
2b17990
a567305
04573d4
e27d6b4
1528b98
115d4c7
b7eead8
eb49a6d
e7f6c8d
0658c34
e33b956
536ca8a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1125,6 +1125,7 @@ func (v *validator) PushProposerSettings(ctx context.Context, km keymanager.IKey | |
if err != nil { | ||
return err | ||
} | ||
|
||
proposerReqs, err := v.buildPrepProposerReqs(filteredKeys) | ||
if err != nil { | ||
return err | ||
|
@@ -1139,16 +1140,21 @@ func (v *validator) PushProposerSettings(ctx context.Context, km keymanager.IKey | |
"proposerSettingsRequestCount": len(proposerReqs), | ||
}).Debugln("Request count did not match included validator count. Only keys that have been activated will be included in the request.") | ||
} | ||
|
||
if _, err := v.validatorClient.PrepareBeaconProposer(ctx, ðpb.PrepareBeaconProposerRequest{ | ||
Recipients: proposerReqs, | ||
}); err != nil { | ||
return err | ||
} | ||
|
||
signedRegReqs := v.buildSignedRegReqs(ctx, filteredKeys, km.Sign) | ||
if err := SubmitValidatorRegistrations(ctx, v.validatorClient, signedRegReqs, v.validatorsRegBatchSize); err != nil { | ||
return errors.Wrap(ErrBuilderValidatorRegistration, err.Error()) | ||
if len(signedRegReqs) > 0 { | ||
go func() { | ||
if err := SubmitValidatorRegistrations(ctx, v.validatorClient, signedRegReqs, v.validatorsRegBatchSize); err != nil { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this will cancel at the end of the slot, for some groups like dvts should we provide much longer deadlines? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Our code should assume that it is a single logical validator underneath. Also this simply sends it out to multiple relays which is unrelated to dvts. |
||
log.WithError(errors.Wrap(ErrBuilderValidatorRegistration, err.Error())).Warn("failed to register validator on builder") | ||
} | ||
}() | ||
} | ||
|
||
return nil | ||
} | ||
|
||
|
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.
why 1 minute instead of 1 slot ?