Browse Source

Silence lack of current workbase warning in proxy mode since it happens till there is a proxy workbase to work with

master
Con Kolivas 9 years ago
parent
commit
06bdd7fa6a
  1. 4
      src/stratifier.c

4
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 */ /* For sending a single stratum template update */
static void stratum_send_update(sdata_t *sdata, const int64_t client_id, const bool clean) 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; json_t *json_msg;
if (unlikely(!sdata->current_workbase)) { if (unlikely(!sdata->current_workbase)) {
if (!ckp->proxy)
LOGWARNING("No current workbase to send stratum update"); LOGWARNING("No current workbase to send stratum update");
else
LOGDEBUG("No current workbase to send stratum update for client %"PRId64, client_id);
return; return;
} }

Loading…
Cancel
Save