Skip to content

Commit

Permalink
fix: load blockhash when sending each tx
Browse files Browse the repository at this point in the history
  • Loading branch information
j committed Sep 19, 2023
1 parent fea5317 commit 87f99b2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion clients/rust/marginfi-cli/src/processor/emissions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,10 @@ pub fn claim_all_emissions_for_bank(

// Send txs and show progress to user [n/total]
println!("Sending {} txs", ixs_batches_count);
let blockhash = config.mfi_program.rpc().get_latest_blockhash()?;

for (i, ixs) in ixs_batches.enumerate() {
let blockhash = config.mfi_program.rpc().get_latest_blockhash()?;

let tx = Transaction::new_signed_with_payer(
ixs,
Some(&config.payer.pubkey()),
Expand Down

0 comments on commit 87f99b2

Please sign in to comment.