-
Notifications
You must be signed in to change notification settings - Fork 839
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
Updating confusing --bonsai-maximum-back-layers-to-load option to --bonsai-historical-block-limit + remove deprecated snapshots config #5337
Updating confusing --bonsai-maximum-back-layers-to-load option to --bonsai-historical-block-limit + remove deprecated snapshots config #5337
Conversation
|
…limit Signed-off-by: Matt Nelson <monels11@gmail.com>
Signed-off-by: Matt Nelson <monels11@gmail.com>
7e45e39
to
f6465fb
Compare
Signed-off-by: Matt Nelson <85905982+non-fungible-nelson@users.noreply.github.com>
Signed-off-by: garyschulte <garyschulte@gmail.com>
gotta love more red than green on a PR |
besu/src/main/java/org/hyperledger/besu/cli/options/stable/DataStorageOptions.java
Outdated
Show resolved
Hide resolved
there is one unit test failing
|
…aStorageOptions.java Co-authored-by: Sally MacFarlane <macfarla.github@gmail.com> Signed-off-by: Matt Nelson <85905982+non-fungible-nelson@users.noreply.github.com>
@non-fungible-nelson I believe PicoCLI is choosing the You could look at how host-whitelist is handled - it's a hidden alternative (separate option) to host-allowlist - but then you have to handle the case where both are supplied also if you don't hide that option name it will still display in the help ->
Alternatively - if we don't mind users still seeing the old name, you could just remove that test - it's not critical |
I think seeing both is OK if you're querying for help directly. As long as we are clear in the docs and it supplies to the client correctly. |
Signed-off-by: Matt Nelson <monels11@gmail.com>
Signed-off-by: Matt Nelson <monels11@gmail.com>
Signed-off-by: Matt Nelson <85905982+non-fungible-nelson@users.noreply.github.com>
…onsai-historical-block-limit + remove deprecated snapshots config (hyperledger#5337) * Changing bonsai-max-back-layers-to-load to --bonsai-historical-block-limit Signed-off-by: Matt Nelson <monels11@gmail.com> * remove a couple other places where snapshot option was configured Signed-off-by: garyschulte <garyschulte@gmail.com> * Update besu/src/main/java/org/hyperledger/besu/cli/options/stable/DataStorageOptions.java Co-authored-by: Sally MacFarlane <macfarla.github@gmail.com> Signed-off-by: Matt Nelson <85905982+non-fungible-nelson@users.noreply.github.com> --------- Signed-off-by: Matt Nelson <monels11@gmail.com> Signed-off-by: Matt Nelson <85905982+non-fungible-nelson@users.noreply.github.com> Signed-off-by: garyschulte <garyschulte@gmail.com> Co-authored-by: garyschulte <garyschulte@gmail.com> Co-authored-by: Sally MacFarlane <macfarla.github@gmail.com>
…onsai-historical-block-limit + remove deprecated snapshots config (hyperledger#5337) * Changing bonsai-max-back-layers-to-load to --bonsai-historical-block-limit Signed-off-by: Matt Nelson <monels11@gmail.com> * remove a couple other places where snapshot option was configured Signed-off-by: garyschulte <garyschulte@gmail.com> * Update besu/src/main/java/org/hyperledger/besu/cli/options/stable/DataStorageOptions.java Co-authored-by: Sally MacFarlane <macfarla.github@gmail.com> Signed-off-by: Matt Nelson <85905982+non-fungible-nelson@users.noreply.github.com> --------- Signed-off-by: Matt Nelson <monels11@gmail.com> Signed-off-by: Matt Nelson <85905982+non-fungible-nelson@users.noreply.github.com> Signed-off-by: garyschulte <garyschulte@gmail.com> Co-authored-by: garyschulte <garyschulte@gmail.com> Co-authored-by: Sally MacFarlane <macfarla.github@gmail.com>
PR description
Changed the mentioned flags. Alias used to keep backwards compatibility. Also removed now deprecated snapshots option.
Fixed Issue(s)
Ambiguity