diff --git a/validator/src/cli.rs b/validator/src/cli.rs index 2e20b49ad..2e6032041 100644 --- a/validator/src/cli.rs +++ b/validator/src/cli.rs @@ -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") diff --git a/validator/src/main.rs b/validator/src/main.rs index 9c93d3af1..e9f68d0be 100644 --- a/validator/src/main.rs +++ b/validator/src/main.rs @@ -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() };