Skip to content

Commit

Permalink
remove cu limit ix for default
Browse files Browse the repository at this point in the history
  • Loading branch information
miralandlabs committed Aug 12, 2024
1 parent d0987a5 commit 0ce8af6
Showing 1 changed file with 13 additions and 10 deletions.
23 changes: 13 additions & 10 deletions src/send_and_confirm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,15 +60,15 @@ impl Miner {

// Set compute budget
let mut final_ixs = vec![];
match compute_budget {
ComputeBudget::Dynamic => {
// final_ixs.push(ComputeBudgetInstruction::set_compute_unit_limit(1_400_000))
todo!("simulate tx")
}
ComputeBudget::Fixed(cus) => {
final_ixs.push(ComputeBudgetInstruction::set_compute_unit_limit(cus))
}
}
// match compute_budget {
// ComputeBudget::Dynamic => {
// // final_ixs.push(ComputeBudgetInstruction::set_compute_unit_limit(1_400_000))
// todo!("simulate tx")
// }
// ComputeBudget::Fixed(cus) => {
// final_ixs.push(ComputeBudgetInstruction::set_compute_unit_limit(cus))
// }
// }

// Set compute unit price
final_ixs.push(ComputeBudgetInstruction::set_compute_unit_price(
Expand Down Expand Up @@ -287,10 +287,13 @@ impl Miner {
return Ok(sig);
}
}
} else {
// MI
println!("No confirmation status available yet for current signature status.");
}
} else {
// MI
println!("No status");
println!("No status available yet for current signature.");
}
}
}
Expand Down

0 comments on commit 0ce8af6

Please sign in to comment.