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

Count lost stratum share submits and increase message priority to warning.

This commit is contained in:
Con Kolivas 2012-11-06 09:50:36 +11:00
parent 418d15deba
commit 27ce497a7c

View File

@ -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++;