Skip to content

Commit

Permalink
Adds --boot-from-local-state to validator (#32168)
Browse files Browse the repository at this point in the history
  • Loading branch information
brooksprumo authored Jun 16, 2023
1 parent 2ceabd9 commit de024bf
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
13 changes: 13 additions & 0 deletions validator/src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
1 change: 1 addition & 0 deletions validator/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
};

Expand Down

0 comments on commit de024bf

Please sign in to comment.