From 28644a63cf37c906958bc720db7be58d83fd683d Mon Sep 17 00:00:00 2001 From: Quentin Le Sceller Date: Tue, 19 May 2020 11:07:33 -0400 Subject: [PATCH] Fix miminum share difficulty in Stratum Server (#3323) --- servers/src/mining/stratumserver.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/servers/src/mining/stratumserver.rs b/servers/src/mining/stratumserver.rs index 48fdd3bc1..0f9eef7c9 100644 --- a/servers/src/mining/stratumserver.rs +++ b/servers/src/mining/stratumserver.rs @@ -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;