Browse Source

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

nfactor-troky
Con Kolivas 12 years ago
parent
commit
27ce497a7c
  1. 4
      cgminer.c

4
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_WARNING, "Pool %d communication resumed, submitting work", pool->pool_no);
applog(LOG_DEBUG, "Successfully submitted, adding to stratum_shares db"); applog(LOG_DEBUG, "Successfully submitted, adding to stratum_shares db");
} else { } 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); mutex_lock(&sshare_lock);
HASH_DEL(stratum_shares, sshare); HASH_DEL(stratum_shares, sshare);
mutex_unlock(&sshare_lock); mutex_unlock(&sshare_lock);
free(sshare); free(sshare);
pool->stale_shares++;
total_stale++;
if (!pool_tset(pool, &pool->submit_fail)) { if (!pool_tset(pool, &pool->submit_fail)) {
total_ro++; total_ro++;

Loading…
Cancel
Save