From 2d09e4965e92f2ad624123163f821812a821b49e Mon Sep 17 00:00:00 2001 From: Justin Starry Date: Wed, 14 Feb 2024 18:33:20 +0800 Subject: [PATCH] clean feature: enable_bpf_loader_extend_program_ix (#35194) --- programs/bpf_loader/src/lib.rs | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/programs/bpf_loader/src/lib.rs b/programs/bpf_loader/src/lib.rs index 21a7b5fed..39b00d0bf 100644 --- a/programs/bpf_loader/src/lib.rs +++ b/programs/bpf_loader/src/lib.rs @@ -35,8 +35,8 @@ use { entrypoint::{MAX_PERMITTED_DATA_INCREASE, SUCCESS}, feature_set::{ bpf_account_data_direct_mapping, deprecate_executable_meta_update_in_bpf_loader, - disable_bpf_loader_instructions, enable_bpf_loader_extend_program_ix, - enable_bpf_loader_set_authority_checked_ix, FeatureSet, + disable_bpf_loader_instructions, enable_bpf_loader_set_authority_checked_ix, + FeatureSet, }, instruction::{AccountMeta, InstructionError}, loader_instruction::LoaderInstruction, @@ -1149,13 +1149,6 @@ fn process_loader_upgradeable_instruction( } } UpgradeableLoaderInstruction::ExtendProgram { additional_bytes } => { - if !invoke_context - .feature_set - .is_active(&enable_bpf_loader_extend_program_ix::ID) - { - return Err(InstructionError::InvalidInstructionData); - } - if additional_bytes == 0 { ic_logger_msg!(log_collector, "Additional bytes must be greater than 0"); return Err(InstructionError::InvalidInstructionData);