featurize rejection of callx r10 instructions (#24309)

This commit is contained in:
Jack May
2022-04-13 11:09:33 -07:00
committed by GitHub
parent 6a474f29cd
commit 2e0bc89ec4
2 changed files with 9 additions and 2 deletions

View File

@ -45,7 +45,7 @@ use {
cap_accounts_data_len, disable_bpf_deprecated_load_instructions,
disable_bpf_unresolved_symbols_at_runtime, disable_deprecated_loader,
do_support_realloc, error_on_syscall_bpf_function_hash_collisions,
reduce_required_deploy_balance, requestable_heap_size,
reduce_required_deploy_balance, reject_callx_r10, requestable_heap_size,
},
instruction::{AccountMeta, InstructionError},
keyed_account::keyed_account_at_index,
@ -146,7 +146,9 @@ pub fn create_executor(
syscall_bpf_function_hash_collision: invoke_context
.feature_set
.is_active(&error_on_syscall_bpf_function_hash_collisions::id()),
reject_callx_r10: false,
reject_callx_r10: invoke_context
.feature_set
.is_active(&reject_callx_r10::id()),
// Warning, do not use `Config::default()` so that configuration here is explicit.
};
let mut create_executor_metrics = executor_metrics::CreateMetrics::default();