From 40399e4a129a6e372e7019af5cbcbd87aab495e4 Mon Sep 17 00:00:00 2001 From: Eric Semeniuc <3838856+esemeniuc@users.noreply.github.com> Date: Wed, 4 Oct 2023 15:57:11 -0700 Subject: [PATCH] tweak --- tip-distributor/src/claim_mev_workflow.rs | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/tip-distributor/src/claim_mev_workflow.rs b/tip-distributor/src/claim_mev_workflow.rs index 8d24d50cdb..53179329b5 100644 --- a/tip-distributor/src/claim_mev_workflow.rs +++ b/tip-distributor/src/claim_mev_workflow.rs @@ -46,7 +46,7 @@ pub async fn claim_mev_tips( keypair_path: &PathBuf, ) -> Result<(), ClaimMevError> { const MAX_SEND_RETRIES: usize = 5; - const MAX_RETRY_DURATION: Duration = Duration::from_secs(60 * 60); // 1h + const MAX_RETRY_DURATION: Duration = Duration::from_secs(10 * 60); // 10 min const TRANSACTION_IX_BATCH_SIZE: usize = 7; let transaction_prepare_start = Instant::now(); @@ -237,6 +237,8 @@ pub async fn claim_mev_tips( } } let instructions_len = instructions.len(); + + // balance check { let start_balance = rpc_client .get_balance(&keypair.pubkey()) @@ -339,7 +341,10 @@ pub async fn claim_mev_tips( retries += 1; } if !failed_transactions.is_empty() { - panic!("failed to send {} transactions", failed_transactions.len()); + panic!( + "Failed to send {} mev claim transactions", + failed_transactions.len() + ); } Ok(())