From 98176fad773417a73dbd5bb4f08b9619f049d52e Mon Sep 17 00:00:00 2001 From: Jack May Date: Fri, 10 Jun 2022 01:29:19 -0700 Subject: [PATCH] cleanup feature: secp256k1_recover_syscall_enabled (#25879) --- programs/bpf_loader/src/syscalls.rs | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/programs/bpf_loader/src/syscalls.rs b/programs/bpf_loader/src/syscalls.rs index 5d37bfe29f..9513323686 100644 --- a/programs/bpf_loader/src/syscalls.rs +++ b/programs/bpf_loader/src/syscalls.rs @@ -26,9 +26,8 @@ use { curve25519_syscall_enabled, disable_fees_sysvar, do_support_realloc, executables_incur_cpi_data_cost, fixed_memcpy_nonoverlapping_check, libsecp256k1_0_5_upgrade_enabled, limit_secp256k1_recovery_id, - prevent_calling_precompiles_as_programs, quick_bail_on_panic, - secp256k1_recover_syscall_enabled, syscall_saturated_math, update_syscall_base_costs, - zk_token_sdk_enabled, + prevent_calling_precompiles_as_programs, quick_bail_on_panic, syscall_saturated_math, + update_syscall_base_costs, zk_token_sdk_enabled, }, hash::{Hasher, HASH_BYTES}, instruction::{ @@ -130,9 +129,6 @@ pub fn register_syscalls( invoke_context: &mut InvokeContext, disable_deploy_of_alloc_free_syscall: bool, ) -> Result> { - let secp256k1_recover_syscall_enabled = invoke_context - .feature_set - .is_active(&secp256k1_recover_syscall_enabled::id()); let blake3_syscall_enabled = invoke_context .feature_set .is_active(&blake3_syscall_enabled::id()); @@ -203,9 +199,7 @@ pub fn register_syscalls( )?; // Secp256k1 Recover - register_feature_gated_syscall!( - syscall_registry, - secp256k1_recover_syscall_enabled, + syscall_registry.register_syscall_by_name( b"sol_secp256k1_recover", SyscallSecp256k1Recover::init, SyscallSecp256k1Recover::call,