From 06bdd7fa6a79dd27589c096e9232ea2f94162ac1 Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Tue, 15 Dec 2015 15:13:50 +1100 Subject: [PATCH] Silence lack of current workbase warning in proxy mode since it happens till there is a proxy workbase to work with --- src/stratifier.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/stratifier.c b/src/stratifier.c index 163f39f9..958511eb 100644 --- a/src/stratifier.c +++ b/src/stratifier.c @@ -4877,10 +4877,14 @@ static void stratum_broadcast_update(sdata_t *sdata, const workbase_t *wb, const /* For sending a single stratum template update */ static void stratum_send_update(sdata_t *sdata, const int64_t client_id, const bool clean) { + ckpool_t *ckp = sdata->ckp; json_t *json_msg; if (unlikely(!sdata->current_workbase)) { - LOGWARNING("No current workbase to send stratum update"); + if (!ckp->proxy) + LOGWARNING("No current workbase to send stratum update"); + else + LOGDEBUG("No current workbase to send stratum update for client %"PRId64, client_id); return; }