Skip to content

Commit

Permalink
no compute
Browse files Browse the repository at this point in the history
  • Loading branch information
esemeniuc committed Oct 5, 2023
1 parent 09d2752 commit ed8fa36
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tip-distributor/src/claim_mev_workflow.rs
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ pub async fn claim_mev_tips(
Vec::with_capacity(tree_nodes.iter().filter(|node| node.amount > 0).count());

// fetch all accounts up front
info!("Starting to fetch accounts");
let account_fetch_start = Instant::now();
let tdas = get_batched_accounts(
&rpc_client,
Expand Down Expand Up @@ -273,9 +274,9 @@ pub async fn claim_mev_tips(
.into_iter() // 1.4MM compute vs 0.2MM
.map(|ix| {
let mut ixs = Vec::with_capacity(TRANSACTION_IX_BATCH_SIZE + 1);
ixs.push(ComputeBudgetInstruction::set_compute_unit_limit(
solana_program_runtime::compute_budget::MAX_COMPUTE_UNIT_LIMIT,
));
// ixs.push(ComputeBudgetInstruction::set_compute_unit_limit(
// solana_program_runtime::compute_budget::MAX_COMPUTE_UNIT_LIMIT,
// ));
ixs.extend(ix);
Transaction::new_with_payer(&ixs, Some(&keypair.pubkey()))
})
Expand Down

0 comments on commit ed8fa36

Please sign in to comment.