Skip to content

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 <[email protected]>
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 <[email protected]>
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 <[email protected]>
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
lucassaldanha pushed a commit to lucassaldanha/besu that referenced this pull request Jun 28, 2022
@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
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