From a33dfd066a2aee5fc6c7ce0ea7951916cf075644 Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Tue, 7 Oct 2014 22:48:17 +1100 Subject: [PATCH] There is no need to place the clamp on lowering diff with suggest_diff since it is predomoninantly used at miner startup and we can rapidly adapt should it be too low anyway --- src/stratifier.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/stratifier.c b/src/stratifier.c index c5c50066..fdb6923f 100644 --- a/src/stratifier.c +++ b/src/stratifier.c @@ -2420,12 +2420,7 @@ static void set_worker_mindiff(ckpool_t *ckp, const char *workername, int mindif continue; if (mindiff == client->diff) continue; - /* If we're going down in diff, do not allow the next diff to - * be drastically lower than the current diff */ - if (mindiff < client->diff * 2 / 3) - client->diff = client->diff * 2 / 3; - else - client->diff = mindiff; + client->diff = mindiff; stratum_send_diff(client); } ck_runlock(&instance_lock);