-
Notifications
You must be signed in to change notification settings - Fork 835
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 <[email protected]>
Signed-off-by: Matt Nelson <[email protected]>
7e45e39
to
f6465fb
Compare
Signed-off-by: Matt Nelson <[email protected]>
Signed-off-by: Matt Nelson <[email protected]>
Signed-off-by: garyschulte <[email protected]>
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 <[email protected]> Signed-off-by: Matt Nelson <[email protected]>
@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 <[email protected]>
Signed-off-by: Matt Nelson <[email protected]>
Signed-off-by: Matt Nelson <[email protected]>
…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 <[email protected]> * remove a couple other places where snapshot option was configured Signed-off-by: garyschulte <[email protected]> * Update besu/src/main/java/org/hyperledger/besu/cli/options/stable/DataStorageOptions.java Co-authored-by: Sally MacFarlane <[email protected]> Signed-off-by: Matt Nelson <[email protected]> --------- Signed-off-by: Matt Nelson <[email protected]> Signed-off-by: Matt Nelson <[email protected]> Signed-off-by: garyschulte <[email protected]> Co-authored-by: garyschulte <[email protected]> Co-authored-by: Sally MacFarlane <[email protected]>
…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 <[email protected]> * remove a couple other places where snapshot option was configured Signed-off-by: garyschulte <[email protected]> * Update besu/src/main/java/org/hyperledger/besu/cli/options/stable/DataStorageOptions.java Co-authored-by: Sally MacFarlane <[email protected]> Signed-off-by: Matt Nelson <[email protected]> --------- Signed-off-by: Matt Nelson <[email protected]> Signed-off-by: Matt Nelson <[email protected]> Signed-off-by: garyschulte <[email protected]> Co-authored-by: garyschulte <[email protected]> Co-authored-by: Sally MacFarlane <[email protected]>
PR description
Changed the mentioned flags. Alias used to keep backwards compatibility. Also removed now deprecated snapshots option.
Fixed Issue(s)
Ambiguity