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

BugFix: cli stringSlice bug #11166

Merged
merged 36 commits into from
Aug 8, 2022
Merged

BugFix: cli stringSlice bug #11166

merged 36 commits into from
Aug 8, 2022

Conversation

james-prysm
Copy link
Contributor

What type of PR is this?

Bug fix

related
urfave/cli#1197
#11009

What does this PR do? Why is it needed?

string slice flags do not support the IsSet function when using the config-fileflag which feeds flags and their values via a yaml or json file.

Which issues(s) does this PR fix?

  • bootnode flag in config file
  • validators-external-signer-public-keys in config file
  • remove duplicates from validators-external-signer-public-keys

@james-prysm james-prysm added Bug Something isn't working Cleanup Code health! labels Aug 3, 2022
@james-prysm james-prysm self-assigned this Aug 3, 2022
@james-prysm james-prysm marked this pull request as ready for review August 3, 2022 18:59
@james-prysm james-prysm requested a review from a team as a code owner August 3, 2022 18:59
@@ -349,7 +349,6 @@ var (
EnableBuilderFlag = &cli.BoolFlag{
Name: "enable-builder",
Usage: "Enables Builder validator registration APIs for the validator client to update settings such as fee recipient and gas limit. Note* this flag is not required if using proposer settings config file",
Value: false,
Copy link
Member

Choose a reason for hiding this comment

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

Is this relevant?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, I found out that default values override configs, this is perhaps an issue through out the cli flags but in particular, I tested thsi one and realized that if you use enable-builder in the config file when it has a starting value (false) the config file does not override this value.

james-prysm and others added 2 commits August 8, 2022 09:11
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>
container/slice/slice.go Outdated Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working Cleanup Code health!
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants