-
Notifications
You must be signed in to change notification settings - Fork 291
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
[MEV Boost\Builder] Support for validator registration in VC #5598
[MEV Boost\Builder] Support for validator registration in VC #5598
Conversation
inOrder.verify(validatorApiChannel, timeout(5000)).registerValidators(argumentCaptor.capture()); | ||
verifyRegistrations(argumentCaptor.getValue()); |
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.
5 seconds in a unit test is a long time...
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.
thanks, will keep in mind, changed to 1 second
verifyRegistrations(argumentCaptor.getValue()); | ||
|
||
// WHEN onSlot called again next time in a beginning of an epoch, registrations will be cached | ||
validatorRegistrator.onSlot(UInt64.ZERO); |
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.
can we call this onSlot with a different value? my hope is we never would call it with zero more than once...
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 point, changed it to the slot at the beginning of next epoch
9df3b21
to
b89b355
Compare
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.
LGTM
b89b355
to
e3b474d
Compare
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.
LGTM
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.
LGTM
339db0d
to
051746d
Compare
PR Description
Adding
ValidatorRegistrator
which will send validator registrations to the Beacon Node on beginning of epoch, on startup and when new validators are added.Fixed Issue(s)
fixes #5596
Documentation
doc-change-required
label to this PR if updates are required.Changelog