diff --git a/programs/bpf_loader/src/lib.rs b/programs/bpf_loader/src/lib.rs index 2b745d88815775..cedfa5babc9aed 100644 --- a/programs/bpf_loader/src/lib.rs +++ b/programs/bpf_loader/src/lib.rs @@ -36,8 +36,8 @@ use { feature_set::{ bpf_account_data_direct_mapping, delay_visibility_of_program_deployment, enable_bpf_loader_extend_program_ix, enable_bpf_loader_set_authority_checked_ix, - enable_program_redeployment_cooldown, limit_max_instruction_trace_length, - native_programs_consume_cu, remove_bpf_loader_incorrect_program_id, + enable_program_redeployment_cooldown, native_programs_consume_cu, + remove_bpf_loader_incorrect_program_id, }, instruction::{AccountMeta, InstructionError}, loader_instruction::LoaderInstruction, @@ -1596,17 +1596,7 @@ fn execute<'a, 'b: 'a>( } match result { ProgramResult::Ok(status) if status != SUCCESS => { - let error: InstructionError = if status == MAX_INSTRUCTION_TRACE_LENGTH_EXCEEDED - && !invoke_context - .feature_set - .is_active(&limit_max_instruction_trace_length::id()) - { - // Until the limit_max_instruction_trace_length feature is - // enabled, map the `MAX_INSTRUCTION_TRACE_LENGTH_EXCEEDED` error to `InvalidError`. - InstructionError::InvalidError - } else { - status.into() - }; + let error: InstructionError = status.into(); Err(Box::new(error) as Box) } ProgramResult::Err(mut error) => { diff --git a/runtime/src/bank.rs b/runtime/src/bank.rs index 468ccc6fc332f6..fb54a36e95f7e7 100644 --- a/runtime/src/bank.rs +++ b/runtime/src/bank.rs @@ -4889,14 +4889,7 @@ impl Bank { transaction_accounts, self.rent_collector.rent, compute_budget.max_invoke_stack_height, - if self - .feature_set - .is_active(&feature_set::limit_max_instruction_trace_length::id()) - { - compute_budget.max_instruction_trace_length - } else { - std::usize::MAX - }, + compute_budget.max_instruction_trace_length, ); #[cfg(debug_assertions)] transaction_context.set_signature(tx.signature());