ledger-tool does *not* fastboot by default (#34228)

This commit is contained in:
Brooks 2023-11-27 13:48:28 -05:00 committed by GitHub
parent e83276522a
commit 5c7ab5dc08
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 1 deletions

View File

@ -16,6 +16,7 @@ Release channels have their own copy of this changelog:
* Changes
* Added a github check to support `changelog` label
* The default for `--use-snapshot-archives-at-startup` is now `when-newest` (#33883)
* The default for `solana-ledger-tool`, however, remains `always` (#34228)
* Upgrade Notes
## [1.17.0]

View File

@ -1246,7 +1246,7 @@ fn main() {
.long(use_snapshot_archives_at_startup::cli::LONG_ARG)
.takes_value(true)
.possible_values(use_snapshot_archives_at_startup::cli::POSSIBLE_VALUES)
.default_value(use_snapshot_archives_at_startup::cli::default_value())
.default_value(use_snapshot_archives_at_startup::cli::default_value_for_ledger_tool())
.help(use_snapshot_archives_at_startup::cli::HELP)
.long_help(use_snapshot_archives_at_startup::cli::LONG_HELP);

View File

@ -48,4 +48,8 @@ pub mod cli {
pub fn default_value() -> &'static str {
UseSnapshotArchivesAtStartup::default().into()
}
pub fn default_value_for_ledger_tool() -> &'static str {
UseSnapshotArchivesAtStartup::Always.into()
}
}