1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-01-11 07:17:58 +00:00

Do not give the share submission failure message on planned stratum disconnects.

This commit is contained in:
Con Kolivas 2012-12-26 09:38:58 +11:00
parent 944af31b99
commit 8958ee424b

View File

@ -3097,6 +3097,8 @@ static void check_solve(struct work *work)
}
}
static bool cnx_needed(struct pool *pool);
static void *submit_work_thread(void *userdata)
{
struct work *work = (struct work *)userdata;
@ -3158,7 +3160,7 @@ static void *submit_work_thread(void *userdata)
if (pool_tclear(pool, &pool->submit_fail))
applog(LOG_WARNING, "Pool %d communication resumed, submitting work", pool->pool_no);
applog(LOG_DEBUG, "Successfully submitted, adding to stratum_shares db");
} else if (!pool_tset(pool, &pool->submit_fail)) {
} else if (!pool_tset(pool, &pool->submit_fail) && cnx_needed(pool)) {
applog(LOG_WARNING, "Pool %d stratum share submission failure", pool->pool_no);
total_ro++;
pool->remotefail_occasions++;