Skip to content

Commit

Permalink
re-add wait for mining
Browse files Browse the repository at this point in the history
  • Loading branch information
HardhatChad committed Apr 2, 2024
1 parent 16487df commit 771f387
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/components/miner_toolbar/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,11 @@ pub async fn try_start_mining(
gateway.register_ore().await?;

// Wait for mining to begin if necessary
// let now_unix_timestamp = Utc::now().timestamp();
// if START_AT.gt(&now_unix_timestamp) {
// *status_message.write() = MinerStatusMessage::Waiting;
// return Ok(());
// }
let now_unix_timestamp = Utc::now().timestamp();
if START_AT.gt(&now_unix_timestamp) {
*status_message.write() = MinerStatusMessage::Waiting;
return Ok(());
}

// Start mining
let treasury = gateway.get_treasury().await.unwrap();
Expand Down

0 comments on commit 771f387

Please sign in to comment.