Skip to content

Commit

Permalink
Merge pull request #128 from mrgnlabs/j/cli-blockhash-fix
Browse files Browse the repository at this point in the history
fix: load blockhash when sending each tx
  • Loading branch information
jkbpvsc authored Sep 19, 2023
2 parents 19122d6 + 87f99b2 commit a4a7182
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 a4a7182

Please sign in to comment.