Skip to content

Commit

Permalink
change mine cu limit
Browse files Browse the repository at this point in the history
  • Loading branch information
miralandlabs committed Aug 11, 2024
1 parent ec3bf42 commit 9f8e477
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/components/mine.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ pub fn Mine() -> Element {
MinerStatusMessage::Searching => {
rsx! {
p {
class: "text-lg text-white",
class: "text-lg dark:text-white",
"Searching for valid hashes... "
// if time_remaining.read().gt(&0) {
// "({time_remaining} sec)"
Expand Down
6 changes: 3 additions & 3 deletions src/miner/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ pub use web_worker::*;
use crate::{
components::PriorityFeeStrategy,
gateway::{
self, signer, ComputeBudget, Gateway, GatewayResult, CU_LIMIT_MINE, DEFAULT_CU_LIMIT,
self, signer, ComputeBudget, Gateway, GatewayResult, CU_LIMIT_MINE,
PRIORITY_FEE_CAP,
},
hooks::{
Expand Down Expand Up @@ -242,9 +242,9 @@ pub async fn submit_solution(
// Send and configm
log::info!("starting send and confirm..."); // MI
let cb = match priority_fee_strategy {
PriorityFeeStrategy::Estimate => ComputeBudget::FixedLimitEstimatePrice(DEFAULT_CU_LIMIT),
PriorityFeeStrategy::Estimate => ComputeBudget::FixedLimitEstimatePrice(CU_LIMIT_MINE), // DEFAULT_CU_LIMIT
PriorityFeeStrategy::Static => {
ComputeBudget::FixedLimitStaticPrice(DEFAULT_CU_LIMIT, priority_fee)
ComputeBudget::FixedLimitStaticPrice(CU_LIMIT_MINE, priority_fee)
}
};
gateway
Expand Down

0 comments on commit 9f8e477

Please sign in to comment.