From 27ce497a7c37915b683cbae8f9b9ca2dfa2aa1dc Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Tue, 6 Nov 2012 09:50:36 +1100 Subject: [PATCH] Count lost stratum share submits and increase message priority to warning. --- cgminer.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cgminer.c b/cgminer.c index 529333e8..d6990539 100644 --- a/cgminer.c +++ b/cgminer.c @@ -3242,11 +3242,13 @@ static void *submit_work_thread(void *userdata) applog(LOG_WARNING, "Pool %d communication resumed, submitting work", pool->pool_no); applog(LOG_DEBUG, "Successfully submitted, adding to stratum_shares db"); } else { - applog(LOG_INFO, "Failed to submit stratum share"); + applog(LOG_WARNING, "Failed to submit stratum share to pool %d", pool->pool_no); mutex_lock(&sshare_lock); HASH_DEL(stratum_shares, sshare); mutex_unlock(&sshare_lock); free(sshare); + pool->stale_shares++; + total_stale++; if (!pool_tset(pool, &pool->submit_fail)) { total_ro++;