From 8958ee424b934c5fe2ad306509e386aadc7c50c5 Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Wed, 26 Dec 2012 09:38:58 +1100 Subject: [PATCH] Do not give the share submission failure message on planned stratum disconnects. --- cgminer.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cgminer.c b/cgminer.c index 401de946..f5f011fd 100644 --- a/cgminer.c +++ b/cgminer.c @@ -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++;