Fix miminum share difficulty in Stratum Server (#3323)

This commit is contained in:
Quentin Le Sceller 2020-05-19 11:07:33 -04:00 committed by GitHub
parent 93f5de3d29
commit 28644a63cf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;