solana-test-validator now uses the BPF JIT by default, --no-bpf-jit
to disable
This commit is contained in:
committed by
mergify[bot]
parent
8424fe2c12
commit
f063f02c41
@ -49,6 +49,7 @@ pub struct TestValidatorGenesis {
|
||||
rpc_config: JsonRpcConfig,
|
||||
rpc_ports: Option<(u16, u16)>, // (JsonRpc, JsonRpcPubSub), None == random ports
|
||||
warp_slot: Option<Slot>,
|
||||
no_bpf_jit: bool,
|
||||
accounts: HashMap<Pubkey, Account>,
|
||||
programs: Vec<ProgramInfo>,
|
||||
}
|
||||
@ -84,6 +85,11 @@ impl TestValidatorGenesis {
|
||||
self
|
||||
}
|
||||
|
||||
pub fn bpf_jit(&mut self, bpf_jit: bool) -> &mut Self {
|
||||
self.no_bpf_jit = !bpf_jit;
|
||||
self
|
||||
}
|
||||
|
||||
/// Add an account to the test environment
|
||||
pub fn add_account(&mut self, address: Pubkey, account: Account) -> &mut Self {
|
||||
self.accounts.insert(address, account);
|
||||
@ -394,6 +400,7 @@ impl TestValidator {
|
||||
}),
|
||||
enforce_ulimit_nofile: false,
|
||||
warp_slot: config.warp_slot,
|
||||
bpf_jit: !config.no_bpf_jit,
|
||||
..ValidatorConfig::default()
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user