From ae1d659832e87ecc438ba0189c0cf936b9f087d9 Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Thu, 10 Dec 2015 10:46:00 +1100 Subject: [PATCH] Remove throttled flag once user is authorised --- src/stratifier.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/stratifier.c b/src/stratifier.c index 4f393781..29b7cb23 100644 --- a/src/stratifier.c +++ b/src/stratifier.c @@ -2760,6 +2760,7 @@ static json_t *parse_authorise(stratum_instance_t *client, const json_t *params_ LOGNOTICE("Authorised client %"PRId64" %s worker %s as user %s", client->id, client->address, buf, user->username); user->auth_backoff = DEFAULT_AUTH_BACKOFF; /* Reset auth backoff time */ + user->throttled = false; } else { LOGNOTICE("Client %"PRId64" %s worker %s failed to authorise as user %s", client->id, client->address, buf,user->username);