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

[MEV Boost\Builder] Support for validator registration in VC #5598

Merged

Conversation

StefanBratanov
Copy link
Contributor

@StefanBratanov StefanBratanov commented May 26, 2022

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

  • I thought about documentation and added the doc-change-required label to this PR if updates are required.

Changelog

  • I thought about adding a changelog entry, and added one if I deemed necessary.

Comment on lines 130 to 118
inOrder.verify(validatorApiChannel, timeout(5000)).registerValidators(argumentCaptor.capture());
verifyRegistrations(argumentCaptor.getValue());
Copy link
Contributor

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...

Copy link
Contributor Author

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);
Copy link
Contributor

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...

Copy link
Contributor Author

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

@StefanBratanov StefanBratanov marked this pull request as ready for review May 30, 2022 11:21
@StefanBratanov StefanBratanov force-pushed the validator_registration_vc branch from 9df3b21 to b89b355 Compare May 30, 2022 11:56
Copy link
Contributor

@tbenr tbenr left a comment

Choose a reason for hiding this comment

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

LGTM

@StefanBratanov StefanBratanov changed the title Support for validator registration in VC [MEV Boost\Builder] Support for validator registration in VC May 30, 2022
@StefanBratanov StefanBratanov force-pushed the validator_registration_vc branch from b89b355 to e3b474d Compare May 30, 2022 14:17
Copy link
Contributor

@rolfyone rolfyone left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@tbenr tbenr left a comment

Choose a reason for hiding this comment

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

LGTM

@StefanBratanov StefanBratanov force-pushed the validator_registration_vc branch from 339db0d to 051746d Compare May 31, 2022 07:25
@StefanBratanov StefanBratanov enabled auto-merge (squash) May 31, 2022 07:26
@StefanBratanov StefanBratanov merged commit 3bc9080 into Consensys:master May 31, 2022
@StefanBratanov StefanBratanov deleted the validator_registration_vc branch May 31, 2022 07:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

support for validator registration in VC
3 participants