Add jit and caching args to ledger-tool (#15177)
This commit is contained in:
parent
47578895e1
commit
11b84cb870
|
@ -742,6 +742,14 @@ fn main() {
|
|||
.long("no-snapshot")
|
||||
.takes_value(false)
|
||||
.help("Do not start from a local snapshot if present");
|
||||
let bpf_jit_arg = Arg::with_name("bpf_jit")
|
||||
.long("bpf-jit")
|
||||
.takes_value(false)
|
||||
.help("Process with JIT instead of interpreter.");
|
||||
let no_accounts_db_caching_arg = Arg::with_name("no_accounts_db_caching")
|
||||
.long("no-accounts-db-caching")
|
||||
.takes_value(false)
|
||||
.help("Disables accounts-db caching");
|
||||
let account_paths_arg = Arg::with_name("account_paths")
|
||||
.long("accounts")
|
||||
.value_name("PATHS")
|
||||
|
@ -999,6 +1007,8 @@ fn main() {
|
|||
.arg(&account_paths_arg)
|
||||
.arg(&halt_at_slot_arg)
|
||||
.arg(&hard_forks_arg)
|
||||
.arg(&no_accounts_db_caching_arg)
|
||||
.arg(&bpf_jit_arg)
|
||||
.arg(&max_genesis_archive_unpacked_size_arg)
|
||||
.arg(
|
||||
Arg::with_name("skip_poh_verify")
|
||||
|
@ -1632,6 +1642,8 @@ fn main() {
|
|||
dev_halt_at_slot: value_t!(arg_matches, "halt_at_slot", Slot).ok(),
|
||||
new_hard_forks: hardforks_of(arg_matches, "hard_forks"),
|
||||
poh_verify: !arg_matches.is_present("skip_poh_verify"),
|
||||
bpf_jit: arg_matches.is_present("bpf_jit"),
|
||||
accounts_db_caching_enabled: !arg_matches.is_present("no_accounts_db_caching"),
|
||||
..ProcessOptions::default()
|
||||
};
|
||||
let print_accounts_stats = arg_matches.is_present("print_accounts_stats");
|
||||
|
|
Loading…
Reference in New Issue