Validator CLI option to enable just-in-time compilation of BPF (#13789)

* Adds a CLI option to the validator to enable just-in-time compilation of BPF.

* Refactoring to use bpf_loader_program instead of feature_set to pass JIT flag from the validator CLI to the executor.
This commit is contained in:
Alexander Meißner
2020-12-07 09:49:55 +01:00
committed by GitHub
parent 3425e98a6b
commit a706706572
9 changed files with 93 additions and 31 deletions

View File

@ -105,6 +105,7 @@ pub struct ValidatorConfig {
pub require_tower: bool,
pub debug_keys: Option<Arc<HashSet<Pubkey>>>,
pub contact_debug_interval: u64,
pub bpf_jit: bool,
}
impl Default for ValidatorConfig {
@ -141,6 +142,7 @@ impl Default for ValidatorConfig {
require_tower: false,
debug_keys: None,
contact_debug_interval: DEFAULT_CONTACT_DEBUG_INTERVAL,
bpf_jit: false,
}
}
}
@ -857,6 +859,7 @@ fn new_banks_from_ledger(
}
let process_options = blockstore_processor::ProcessOptions {
bpf_jit: config.bpf_jit,
poh_verify,
dev_halt_at_slot: config.dev_halt_at_slot,
new_hard_forks: config.new_hard_forks.clone(),