Default to the BPF JIT. Use the solana-validator --no-bpf-jit flag to disable

This commit is contained in:
Michael Vines
2021-03-09 16:23:08 -08:00
parent ab21171e2a
commit c836cd85c3
2 changed files with 15 additions and 7 deletions

View File

@ -1581,10 +1581,18 @@ pub fn main() {
),
)
.arg(
Arg::with_name("no_bpf_jit")
.long("no-bpf-jit")
.takes_value(false)
.help("Disable the just-in-time compiler and instead use the interpreter for BPF"),
)
.arg(
// legacy nop argument
Arg::with_name("bpf_jit")
.long("bpf-jit")
.hidden(true)
.takes_value(false)
.help("Use the just-in-time compiler instead of the interpreter for BPF."),
.conflicts_with("no_bpf_jit")
)
.arg(
Arg::with_name("poh_pinned_cpu_core")
@ -1920,7 +1928,7 @@ pub fn main() {
poh_verify: !matches.is_present("skip_poh_verify"),
debug_keys,
contact_debug_interval,
bpf_jit: matches.is_present("bpf_jit"),
bpf_jit: !matches.is_present("no_bpf_jit"),
send_transaction_retry_ms: value_t_or_exit!(matches, "rpc_send_transaction_retry_ms", u64),
send_transaction_leader_forward_count: value_t_or_exit!(
matches,