Ignore reject floods on initial connect
This commit is contained in:
parent
c4506c7e47
commit
8c44df96cb
@ -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);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user