This commit is contained in:
Jay D Dee
2017-02-22 22:47:44 -05:00
parent 4521b324e3
commit 33b1bb5cd4
31 changed files with 1597 additions and 559 deletions

8
util.c
View File

@@ -1797,10 +1797,10 @@ static bool stratum_set_difficulty(struct stratum_ctx *sctx, json_t *params)
sctx->next_diff = diff;
pthread_mutex_unlock(&sctx->work_lock);
// /* store for api stats */
// stratum_diff = diff;
//
// applog(LOG_WARNING, "Stratum difficulty set to %g", diff);
/* store for api stats */
stratum_diff = diff;
applog(LOG_WARNING, "Stratum difficulty set to %g", diff);
return true;
}