From 8c44df96cbe57eb31c545dbd0e962a085b8dd4c2 Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Fri, 26 Sep 2014 11:28:38 +1000 Subject: [PATCH] Ignore reject floods on initial connect --- src/stratifier.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/stratifier.c b/src/stratifier.c index a454581c..c37065f4 100644 --- a/src/stratifier.c +++ b/src/stratifier.c @@ -1674,6 +1674,11 @@ static void add_submit(ckpool_t *ckp, stratum_instance_t *client, int diff, bool int64_t next_blockid, optimal; tv_t now_t; + /* Ignore successive rejects in count if they haven't submitted a valid + * share yet. */ + if (unlikely(!client->ssdc && !valid)) + return; + tv_time(&now_t); ck_rlock(&workbase_lock);