From 9f8e4779958cdf5cdc2b25b1066018009a474d0f Mon Sep 17 00:00:00 2001 From: Miraland Labs Date: Sun, 11 Aug 2024 21:48:20 +0800 Subject: [PATCH] change mine cu limit --- src/components/mine.rs | 2 +- src/miner/mod.rs | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/components/mine.rs b/src/components/mine.rs index 3003a0cc..6461253e 100644 --- a/src/components/mine.rs +++ b/src/components/mine.rs @@ -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)" diff --git a/src/miner/mod.rs b/src/miner/mod.rs index 5ca22e28..1172bff6 100644 --- a/src/miner/mod.rs +++ b/src/miner/mod.rs @@ -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::{ @@ -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