Adds `--boot-from-local-state` to validator (#32168)
This commit is contained in:
parent
2ceabd9368
commit
de024bf98d
|
@ -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")
|
||||
|
|
|
@ -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()
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue