Skip to content

Commit

Permalink
Hack to get around program cache initialization in bank (#198)
Browse files Browse the repository at this point in the history
  • Loading branch information
mjain-jump authored Dec 20, 2024
1 parent b287c9b commit 4554ff0
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 deletions src/txn_fuzzer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -340,17 +340,16 @@ impl From<LoadAndExecuteTransactionsOutput> for TxnResult {
}

fn get_dummy_bpf_native_program() -> Vec<(Pubkey, AccountSharedData)> {
let mut accounts = Vec::<(Pubkey, AccountSharedData)>::new();
accounts.push((
solana_sdk::address_lookup_table::program::id(),
AccountSharedData::new(1u64, 0, &bpf_loader_upgradeable::id()),
));
accounts.push((
solana_sdk::config::program::id(),
AccountSharedData::new(1u64, 0, &bpf_loader_upgradeable::id()),
));

accounts
vec![
(
solana_sdk::address_lookup_table::program::id(),
AccountSharedData::new(1u64, 0, &bpf_loader_upgradeable::id()),
),
(
solana_sdk::config::program::id(),
AccountSharedData::new(1u64, 0, &bpf_loader_upgradeable::id()),
),
]
}

#[allow(deprecated)]
Expand Down

0 comments on commit 4554ff0

Please sign in to comment.