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

warning invalid sync mode option [#3884] #4017

Conversation

gfukushima
Copy link
Contributor

PR description

Warning displayed to the user when an invalid sync-mode option passed to besu.
Removed the custom converter that was allowing invalid options to be passed converting them to null in the end.

Fixed Issue(s)

Fixes #3884

Documentation

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

Changelog

Picocli already handles Enums in their built-in converter.
The custom converter allows invalid values to be passed and these are converted to null which is considered valid by the converter and will not trigger alert to the user.

 Resolves: hyperledger#3884

Signed-off-by: Gabriel Fukushima <gabrielfukushima@gmail.com>
After removed the call of the registering custom converters from the command line method is not being used anymore.

 Resolves: hyperledger#3884

Signed-off-by: Gabriel Fukushima <gabrielfukushima@gmail.com>
Invalid sync-mode was converted to fast previously, now it throws an alert to the user warning about expected valid entries.

 Resolves: hyperledger#3884

Signed-off-by: Gabriel Fukushima <gabrielfukushima@gmail.com>
Copy link
Contributor

@macfarla macfarla left a comment

Choose a reason for hiding this comment

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

Looks good to me! Thanks for the contribution!

Copy link
Contributor

@diega diega left a comment

Choose a reason for hiding this comment

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

LGTM

@lucassaldanha lucassaldanha merged commit 76b7e76 into hyperledger:main Jun 27, 2022
macfarla pushed a commit to macfarla/besu that referenced this pull request Jun 28, 2022
Signed-off-by: Sally MacFarlane <sally.macfarlane@consensys.net>
lucassaldanha pushed a commit to lucassaldanha/besu that referenced this pull request Jun 28, 2022
Signed-off-by: Gabriel Fukushima <gabrielfukushima@gmail.com>
@gfukushima gfukushima deleted the #3884_warning_invalid_sync-mode_option branch July 6, 2022 06:42
eum602 pushed a commit to lacchain/besu that referenced this pull request Nov 3, 2023
Signed-off-by: Gabriel Fukushima <gabrielfukushima@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

warn user if specified sync-mode does not match expected values
4 participants