Skip to content

Commit

Permalink
release: v5.7.3 - fix retarget issue
Browse files Browse the repository at this point in the history
  • Loading branch information
kilpatty committed Feb 5, 2024
1 parent 617623f commit 4e2a710
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion server/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "stratum-server"
version = "5.7.2"
version = "5.7.3"
authors = ["Sean Kilgarriff [email protected]"]
rust-version = "1.67.1"
edition = "2021"
Expand Down
3 changes: 2 additions & 1 deletion server/src/miner.rs
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,8 @@ impl Miner {

if avg > target_time {
//@todo this needs to just be target_time since we multiplied it above.
if (avg / self.config_manager.difficulty_config().target_time as f64) <= 1.5 {
if (avg / (self.config_manager.difficulty_config().target_time as f64 * 1000.0)) <= 1.5
{
return;
}
new_diff = difficulties.current().as_u64() / 2;
Expand Down

0 comments on commit 4e2a710

Please sign in to comment.