-
-
Notifications
You must be signed in to change notification settings - Fork 289
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
fix: remove duplicate validator registration calls #5993
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Performance Report✔️ no performance regression detected Full benchmark results
|
g11tech
requested changes
Sep 25, 2023
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.
Will review in detail and respond/approve
nflaig
force-pushed
the
nflaig/remove-duplicate-registration
branch
from
September 29, 2023 12:50
bfa8215
to
71b9979
Compare
nflaig
force-pushed
the
nflaig/remove-duplicate-registration
branch
from
September 30, 2023 13:05
71b9979
to
f9e3f6d
Compare
g11tech
approved these changes
Oct 9, 2023
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
🎉 This PR is included in v1.12.0 🎉 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Motivation
Validator registration calls with beacon node / builder should only be done once at startup.
Description
Removed duplicate validator registration calls.
The function call queued up in
runEveryEpoch
runs immediately on first time, it is not required to explicitly call the function.lodestar/packages/validator/src/util/clock.ts
Lines 91 to 98 in f5e2c3a
Startup logs
@g11tech I noticed this was brought up in the inital PR #3969 (comment), the comment in code does not seem to be accurate but might be worth to double check.