Skip to content

Commit

Permalink
Merge pull request #100 from regolith-labs/hardhat/ge-min-dif
Browse files Browse the repository at this point in the history
Greater than or equal to min diff
  • Loading branch information
HardhatChad authored Aug 6, 2024
2 parents b6e9ddd + 1d9592f commit 9ed156a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mine.rs
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ impl Miner {
// Exit if time has elapsed
if nonce % 100 == 0 {
if timer.elapsed().as_secs().ge(&cutoff_time) {
if best_difficulty.gt(&min_difficulty) {
if best_difficulty.ge(&min_difficulty) {
// Mine until min difficulty has been met
break;
}
Expand Down

0 comments on commit 9ed156a

Please sign in to comment.