Skip to content

Commit

Permalink
Update SBF bench to account for delay visibility (#31501)
Browse files Browse the repository at this point in the history
  • Loading branch information
pgarg66 authored May 5, 2023
1 parent 0e0c91f commit cc24d22
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion programs/sbf/benches/bpf_loader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -196,9 +196,12 @@ fn bench_program_execute_noop(bencher: &mut Bencher) {
} = create_genesis_config(50);
let bank = Bank::new_for_benches(&genesis_config);
let bank = Arc::new(bank);
let bank_client = BankClient::new_shared(&bank);
let mut bank_client = BankClient::new_shared(&bank);

let invoke_program_id = load_program(&bank_client, &bpf_loader::id(), &mint_keypair, "noop");
let bank = bank_client
.advance_slot(1, &Pubkey::default())
.expect("Failed to advance the slot");

let mint_pubkey = mint_keypair.pubkey();
let account_metas = vec![AccountMeta::new(mint_pubkey, true)];
Expand Down

0 comments on commit cc24d22

Please sign in to comment.