From 35d8fd82c408d8428374563a24ad01b2624fc470 Mon Sep 17 00:00:00 2001 From: pooler Date: Tue, 6 May 2014 16:21:05 +0200 Subject: [PATCH] Correct work restart messages --- cpu-miner.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/cpu-miner.c b/cpu-miner.c index 177278b..106c02d 100644 --- a/cpu-miner.c +++ b/cpu-miner.c @@ -1209,7 +1209,7 @@ start: } if (likely(val)) { bool rc; - applog(LOG_INFO, "LONGPOLL detected new block"); + applog(LOG_INFO, "LONGPOLL pushed new work"); res = json_object_get(val, "result"); soval = json_object_get(res, "submitold"); submit_old = soval ? json_is_true(soval) : false; @@ -1219,8 +1219,6 @@ start: else rc = work_decode(res, &g_work); if (rc) { - if (opt_debug) - applog(LOG_DEBUG, "DEBUG: got new work"); time(&g_work_time); restart_threads(); } @@ -1324,7 +1322,7 @@ static void *stratum_thread(void *userdata) time(&g_work_time); pthread_mutex_unlock(&g_work_lock); if (stratum.job.clean) { - applog(LOG_INFO, "Stratum detected new block"); + applog(LOG_INFO, "Stratum requested work restart"); restart_threads(); } }