Skip to content

cmd/utils: fix handling of boolean flags when they are set to false#33338

Merged
jwasinger merged 1 commit intoethereum:masterfrom
cuiweixie:flags_true
Dec 2, 2025
Merged

cmd/utils: fix handling of boolean flags when they are set to false#33338
jwasinger merged 1 commit intoethereum:masterfrom
cuiweixie:flags_true

Conversation

@cuiweixie
Copy link
Copy Markdown
Contributor

@cuiweixie cuiweixie commented Dec 1, 2025

geth --nodiscover=false
may result in ctx.IsSet(NoDiscoverFlag.Name) is true, but cfg. NoDiscovery should be false, not true.

@gballet
Copy link
Copy Markdown
Member

gballet commented Dec 1, 2025

Hi, thanks a lot for your contribution! 🙏
At the moment, the go-ethereum team is overloaded with pull requests and in order to ensure we can give high quality review and attention to critical changes, we are not accepting refactoring-only PRs or minor upgrades.

We really appreciate the effort and encourage you to keep contributing, but for now we need to focus our limited review bandwidth on feature work, bug fixes, and protocol changes.

Thanks for understanding!

@gballet gballet closed this Dec 1, 2025
@jwasinger
Copy link
Copy Markdown
Contributor

This is worth merging.

@jwasinger jwasinger reopened this Dec 1, 2025
@fjl fjl changed the title cmd/utils: flags should not be setted to true directly cmd/utils: fix handling of boolean flags when they are set to false Dec 2, 2025
@jwasinger jwasinger merged commit be94ea1 into ethereum:master Dec 2, 2025
8 of 9 checks passed
wit765 added a commit to wit765/XDPoSChain that referenced this pull request Dec 10, 2025
weiihann pushed a commit to weiihann/go-ethereum that referenced this pull request Jan 14, 2026
…thereum#33338)

geth --nodiscover=false  
may result in ctx.IsSet(NoDiscoverFlag.Name) is true, but cfg.
NoDiscovery should be false, not true.
@s1na s1na added this to the 1.17.0 milestone Feb 13, 2026
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.

5 participants