Skip to content

Commit

Permalink
tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
esemeniuc committed Oct 4, 2023
1 parent 18c267f commit 40399e4
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions tip-distributor/src/claim_mev_workflow.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down Expand Up @@ -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())
Expand Down Expand Up @@ -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(())
Expand Down

0 comments on commit 40399e4

Please sign in to comment.