Skip to content

Commit 164af76

Browse files
committed
fix harnes
1 parent ab38ce4 commit 164af76

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/flamenco/runtime/tests/harness/fd_instr_harness.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -202,12 +202,12 @@ fd_runtime_fuzz_instr_ctx_create( fd_runtime_fuzz_runner_t * runner,
202202
}
203203
}
204204

205-
/* Add accounts to bpf program cache */
206-
fd_bpf_scan_and_create_bpf_program_cache_entry( slot_ctx, runner->spad );
207-
208205
/* Restore sysvar cache */
209206
fd_sysvar_cache_restore( slot_ctx->sysvar_cache, funk, funk_txn, runner->spad, runtime_wksp );
210207

208+
/* Add accounts to bpf program cache */
209+
fd_bpf_scan_and_create_bpf_program_cache_entry( slot_ctx, runner->spad );
210+
211211
/* Fill missing sysvar cache values with defaults */
212212
/* We create mock accounts for each of the sysvars and hardcode the data fields before loading it into the account manager */
213213
/* We use Agave sysvar defaults for data field values */

src/flamenco/runtime/tests/harness/fd_txn_harness.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,6 @@ fd_runtime_fuzz_txn_ctx_create( fd_runtime_fuzz_runner_t * runner,
7575
/* Restore sysvar cache */
7676
fd_sysvar_cache_restore( slot_ctx->sysvar_cache, funk, funk_txn, runner->spad, fd_wksp_containing( slot_ctx ) );
7777

78-
/* Add accounts to bpf program cache */
79-
fd_bpf_scan_and_create_bpf_program_cache_entry( slot_ctx, runner->spad );
80-
8178
/* Default slot */
8279
ulong slot = test_ctx->slot_ctx.slot ? test_ctx->slot_ctx.slot : 10; // Arbitrary default > 0
8380

@@ -194,6 +191,9 @@ fd_runtime_fuzz_txn_ctx_create( fd_runtime_fuzz_runner_t * runner,
194191
return NULL;
195192
}
196193

194+
/* Add accounts to bpf program cache */
195+
fd_bpf_scan_and_create_bpf_program_cache_entry( slot_ctx, runner->spad );
196+
197197
/* Blockhash queue is given in txn message. We need to populate the following two fields:
198198
- slot_ctx->slot_bank.block_hash_queue
199199
- slot_ctx->slot_bank.recent_block_hashes */

0 commit comments

Comments
 (0)