@@ -139,13 +139,13 @@ fd_deploy_program( fd_exec_instr_ctx_t * instr_ctx,
139139 }
140140
141141 fd_vm_syscall_register_slot ( syscalls ,
142- instr_ctx -> txn_ctx -> slot ,
142+ fd_bank_slot_get ( instr_ctx -> txn_ctx -> bank ) ,
143143 fd_bank_features_query ( instr_ctx -> txn_ctx -> bank ),
144144 1 );
145145
146146 /* Load executable */
147147 fd_sbpf_elf_info_t elf_info [ 1UL ];
148- fd_prog_versions_t versions = fd_prog_versions ( fd_bank_features_query ( instr_ctx -> txn_ctx -> bank ), instr_ctx -> txn_ctx -> slot );
148+ fd_prog_versions_t versions = fd_prog_versions ( fd_bank_features_query ( instr_ctx -> txn_ctx -> bank ), fd_bank_slot_get ( instr_ctx -> txn_ctx -> bank ) );
149149
150150 fd_sbpf_loader_config_t config = { 0 };
151151 config .elf_deploy_checks = deploy_mode ;
@@ -386,7 +386,7 @@ fd_bpf_execute( fd_exec_instr_ctx_t * instr_ctx,
386386
387387 /* TODO do we really need to re-do this on every instruction? */
388388 fd_vm_syscall_register_slot ( syscalls ,
389- instr_ctx -> txn_ctx -> slot ,
389+ fd_bank_slot_get ( instr_ctx -> txn_ctx -> bank ) ,
390390 fd_bank_features_query ( instr_ctx -> txn_ctx -> bank ),
391391 0 );
392392
@@ -429,7 +429,7 @@ fd_bpf_execute( fd_exec_instr_ctx_t * instr_ctx,
429429
430430 /* For dumping syscalls for seed corpora */
431431 int dump_syscall_to_pb = instr_ctx -> txn_ctx -> capture_ctx &&
432- instr_ctx -> txn_ctx -> slot >= instr_ctx -> txn_ctx -> capture_ctx -> dump_proto_start_slot &&
432+ fd_bank_slot_get ( instr_ctx -> txn_ctx -> bank ) >= instr_ctx -> txn_ctx -> capture_ctx -> dump_proto_start_slot &&
433433 instr_ctx -> txn_ctx -> capture_ctx -> dump_syscall_to_pb ;
434434
435435 /* TODO: (topointon): correctly set check_size in vm setup */
@@ -2559,7 +2559,7 @@ fd_bpf_loader_program_execute( fd_exec_instr_ctx_t * ctx ) {
25592559 }
25602560
25612561 ulong program_data_slot = program_data_account_state -> inner .program_data .slot ;
2562- if ( FD_UNLIKELY ( program_data_slot >=ctx -> txn_ctx -> slot ) ) {
2562+ if ( FD_UNLIKELY ( program_data_slot >=fd_bank_slot_get ( ctx -> txn_ctx -> bank ) ) ) {
25632563 /* The account was likely just deployed or upgraded. Corresponds to
25642564 'LoadedProgramType::DelayVisibility' */
25652565 fd_log_collector_msg_literal ( ctx , "Program is not deployed" );
0 commit comments