Skip to content

Commit

Permalink
add jito tip to logs
Browse files Browse the repository at this point in the history
  • Loading branch information
HardhatChad committed Aug 11, 2024
1 parent 100d83d commit ea17563
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/send_and_confirm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ impl Miner {
compute_budget: ComputeBudget,
skip_confirm: bool,
) -> ClientResult<Signature> {
let progress_bar = spinner::new_progress_bar();
let signer = self.signer();
let client = self.rpc_client.clone();
let fee_payer = self.fee_payer();
Expand Down Expand Up @@ -103,6 +104,7 @@ impl Miner {
.unwrap(),
jito_tip,
));
progress_bar.println(format!(" Jito tip: {} SOL", lamports_to_sol(jito_tip)));
}

// Build tx
Expand All @@ -116,7 +118,6 @@ impl Miner {
let mut tx = Transaction::new_with_payer(&final_ixs, Some(&fee_payer.pubkey()));

// Submit tx
let progress_bar = spinner::new_progress_bar();
let mut attempts = 0;
loop {
progress_bar.set_message(format!("Submitting transaction... (attempt {})", attempts,));
Expand Down

0 comments on commit ea17563

Please sign in to comment.