Skip to content

Commit

Permalink
Fix miminum share difficulty in Stratum Server (#3323)
Browse files Browse the repository at this point in the history
  • Loading branch information
quentinlesceller authored May 19, 2020
1 parent 93f5de3 commit 28644a6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions servers/src/mining/stratumserver.rs
Original file line number Diff line number Diff line change
Expand Up @@ -568,8 +568,7 @@ impl Handler {

current_hash = latest_hash;
// set the minimum acceptable share difficulty for this block
state.minimum_share_difficulty =
cmp::min(config.minimum_share_difficulty, state.current_difficulty);
state.minimum_share_difficulty = config.minimum_share_difficulty;

// set a new deadline for rebuilding with fresh transactions
deadline = Utc::now().timestamp() + config.attempt_time_per_block as i64;
Expand Down

0 comments on commit 28644a6

Please sign in to comment.