Skip to content

Commit

Permalink
Cleanup - feature gate of stop_sibling_instruction_search_at_parent (
Browse files Browse the repository at this point in the history
…#34841)

Cleanup feature gate of stop_sibling_instruction_search_at_parent.
  • Loading branch information
Lichtso authored Jan 19, 2024
1 parent 6976b75 commit b5b8291
Showing 1 changed file with 3 additions and 13 deletions.
16 changes: 3 additions & 13 deletions programs/bpf_loader/src/syscalls/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,10 @@ use {
enable_big_mod_exp_syscall, enable_partitioned_epoch_reward, enable_poseidon_syscall,
error_on_syscall_bpf_function_hash_collisions, last_restart_slot_sysvar,
reject_callx_r10, remaining_compute_units_syscall_enabled,
stop_sibling_instruction_search_at_parent, stop_truncating_strings_in_syscalls,
switch_to_new_elf_parser,
stop_truncating_strings_in_syscalls, switch_to_new_elf_parser,
},
hash::{Hash, Hasher},
instruction::{
AccountMeta, InstructionError, ProcessedSiblingInstruction,
TRANSACTION_LEVEL_STACK_HEIGHT,
},
instruction::{AccountMeta, InstructionError, ProcessedSiblingInstruction},
keccak, native_loader, poseidon,
precompiles::is_precompile,
program::MAX_RETURN_DATA,
Expand Down Expand Up @@ -1361,9 +1357,6 @@ declare_builtin_function!(
let budget = invoke_context.get_compute_budget();

consume_compute_meter(invoke_context, budget.syscall_base_cost)?;
let stop_sibling_instruction_search_at_parent = invoke_context
.feature_set
.is_active(&stop_sibling_instruction_search_at_parent::id());

// Reverse iterate through the instruction trace,
// ignoring anything except instructions on the same level
Expand All @@ -1377,10 +1370,7 @@ declare_builtin_function!(
let instruction_context = invoke_context
.transaction_context
.get_instruction_context_at_index_in_trace(index_in_trace)?;
if (stop_sibling_instruction_search_at_parent
|| instruction_context.get_stack_height() == TRANSACTION_LEVEL_STACK_HEIGHT)
&& instruction_context.get_stack_height() < stack_height
{
if instruction_context.get_stack_height() < stack_height {
break;
}
if instruction_context.get_stack_height() == stack_height {
Expand Down

0 comments on commit b5b8291

Please sign in to comment.