-
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
fix: Multiple network flags should prevent the BN to start #14169
Conversation
I know the GH issue is only for the beacon node. Could you handle them as well? |
I added it to the validator client, can you point out which other cli needs to be changed? |
config/features/config.go
Outdated
@@ -337,3 +339,24 @@ func logDisabled(flag cli.DocGenerationFlag) { | |||
} | |||
log.WithField(name, flag.GetUsage()).Warn(disabledFeatureFlag) | |||
} | |||
|
|||
// ValidateNetworkFlags validates and prevents beacon node |
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.
Not only beacon node.
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.
Updated the comment
The only other place I see these flags are:
|
added it here |
Thanks! |
7c81c7d
* Implement Initial Logic * Include check in main.go * Add tests for multiple flags * remove usage of append * remove config/features dependency * Move ValidateNetworkFlags to config/features * Nit * removed NetworkFlags from cmd * remove usage of empty string literal * add comment * add flag validation to prysctl validator-exit --------- Co-authored-by: Manu NALEPA <[email protected]>
* add http endpoint * add tests * Gaz * Add pointers * add endpoint to test * Electra: EIP-7251 Update `process_voluntary_exit` (#14176) * Electra: EIP-7251 Update `process_voluntary_exit` * Add unit test for VerifyExitAndSignature EIP-7251 * @potuz peer feedback * Avoid Cloning When Creating a New Gossip Message (#14201) * Add Current Changes * add back check * Avoid a Panic * fix: Multiple network flags should prevent the BN to start (#14169) * Implement Initial Logic * Include check in main.go * Add tests for multiple flags * remove usage of append * remove config/features dependency * Move ValidateNetworkFlags to config/features * Nit * removed NetworkFlags from cmd * remove usage of empty string literal * add comment * add flag validation to prysctl validator-exit --------- Co-authored-by: Manu NALEPA <[email protected]> * fix tests * Radek' review + tests * fix tests * Radek' review * forgot one * almost forgot the tests --------- Co-authored-by: Preston Van Loon <[email protected]> Co-authored-by: Nishant Das <[email protected]> Co-authored-by: kira <[email protected]> Co-authored-by: Manu NALEPA <[email protected]> Co-authored-by: Radosław Kapka <[email protected]>
What type of PR is this?
What does this PR do? Why is it needed?
This will prevent BN from starting if there are multiple network flags
Which issues(s) does this PR fix?
Fixes #13801
Other notes for review
Let me know if I need to add comments to change any part of the code