From ea175638335b194f415c56418534e7d1fc190158 Mon Sep 17 00:00:00 2001 From: Hardhat Chad Date: Sun, 11 Aug 2024 14:45:46 +0000 Subject: [PATCH] add jito tip to logs --- src/send_and_confirm.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/send_and_confirm.rs b/src/send_and_confirm.rs index da9dc97d..8ebbacd3 100644 --- a/src/send_and_confirm.rs +++ b/src/send_and_confirm.rs @@ -49,6 +49,7 @@ impl Miner { compute_budget: ComputeBudget, skip_confirm: bool, ) -> ClientResult { + let progress_bar = spinner::new_progress_bar(); let signer = self.signer(); let client = self.rpc_client.clone(); let fee_payer = self.fee_payer(); @@ -103,6 +104,7 @@ impl Miner { .unwrap(), jito_tip, )); + progress_bar.println(format!(" Jito tip: {} SOL", lamports_to_sol(jito_tip))); } // Build tx @@ -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,));