File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -667,9 +667,10 @@ fn executeTxnContext(
667
667
// .accounts_db = &accounts_db,
668
668
// });
669
669
670
- // Remove address lookup table and config program accounts by inserting empty accounts (zero-lamports)
670
+ // Remove address lookup table, stake, and config program accounts by inserting empty accounts (zero-lamports)
671
671
try accounts_db .putAccount (slot , program .address_lookup_table .ID , .EMPTY );
672
672
try accounts_db .putAccount (slot , program .config .ID , .EMPTY );
673
+ try accounts_db .putAccount (slot , program .stake .ID , .EMPTY );
673
674
674
675
// Load accounts into accounts db
675
676
for (accounts_map .keys (), accounts_map .values ()) | pubkey , account | {
Original file line number Diff line number Diff line change @@ -41,12 +41,11 @@ pub fn loadPrograms(
41
41
errdefer programs .deinit (allocator );
42
42
43
43
for (accounts .keys (), accounts .values ()) | pubkey , account | {
44
- const executable = account .executable or
45
- account .owner .equals (& bpf_loader .v1 .ID ) or
46
- account .owner .equals (& bpf_loader .v2 .ID ) or
47
- account .owner .equals (& bpf_loader .v3 .ID ) or
48
- account .owner .equals (& bpf_loader .v4 .ID );
49
- if (! executable ) continue ;
44
+ // https://github.com/firedancer-io/solfuzz-agave/blob/agave-v3.0.3/src/lib.rs#L771-L800
45
+ if (! account .owner .equals (& bpf_loader .v1 .ID ) and
46
+ ! account .owner .equals (& bpf_loader .v2 .ID ) and
47
+ ! account .owner .equals (& bpf_loader .v3 .ID ) and
48
+ ! account .owner .equals (& bpf_loader .v4 .ID )) continue ;
50
49
51
50
var loaded_program = try loadProgram (
52
51
allocator ,
You can’t perform that action at this time.
0 commit comments