Adds `--boot-from-local-state` to validator (#32168)

This commit is contained in:
Brooks 2023-06-16 16:29:04 -04:00 committed by GitHub
parent 2ceabd9368
commit de024bf98d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 14 additions and 0 deletions

View File

@ -291,6 +291,19 @@ pub fn app<'a>(version: &'a str, default_args: &'a DefaultArgs) -> App<'a, 'a> {
.takes_value(true)
.help("Use DIR as snapshot location [default: --ledger value]"),
)
.arg(
Arg::with_name("boot_from_local_state")
.long("boot-from-local-state")
.takes_value(false)
.hidden(hidden_unless_forced())
.help("Boot from state already on disk")
.long_help(
"Boot from state already on disk, instead of \
extracting it from a snapshot archive. \
Note, this will use the latest state available, \
which may be newer than the latest snapshot archive.",
)
)
.arg(
Arg::with_name("incremental_snapshot_archive_path")
.long("incremental-snapshot-archive-path")

View File

@ -1374,6 +1374,7 @@ pub fn main() {
},
staked_nodes_overrides: staked_nodes_overrides.clone(),
replay_slots_concurrently: matches.is_present("replay_slots_concurrently"),
boot_from_local_state: matches.is_present("boot_from_local_state"),
..ValidatorConfig::default()
};