Skip to content

Commit

Permalink
comments
Browse files Browse the repository at this point in the history
  • Loading branch information
esemeniuc committed Oct 12, 2023
1 parent fda99db commit 8384c4e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions tip-distributor/src/bin/claim-mev-tips.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ struct Args {
#[arg(long, env, default_value_t = 200)]
max_concurrent_rpc_get_reqs: usize,

/// Number of retries for main claim send loop. Loop is time bounded.
#[arg(long, env, default_value_t = 5)]
max_loop_retries: u64,

Expand Down
2 changes: 1 addition & 1 deletion tip-distributor/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -489,7 +489,7 @@ pub async fn sign_and_send_transactions_with_retries_multi_rpc(
.expect("fetch latest blockhash"),
));
let mut rng = rand::thread_rng();
transactions.shuffle(&mut rng); // shuffle to avoid sending same txns as other claim-tip processes
transactions.shuffle(&mut rng); // shuffle to avoid racing for the same order of txns as other claim-tip processes
let (tx, rx) = async_channel::bounded::<Transaction>(2 * rpc_clients.len());
let dispatcher_handle = {
let blockhash_rpc_client = blockhash_rpc_client.clone();
Expand Down

0 comments on commit 8384c4e

Please sign in to comment.