Browse Source

Minor cleanups.

master
Con Kolivas 7 years ago
parent
commit
094920c331
  1. 4
      src/generator.c
  2. 2
      src/stratifier.c

4
src/generator.c

@ -2065,7 +2065,7 @@ static void suggest_diff(ckpool_t *ckp, connsock_t *cs, proxy_instance_t *proxy)
* if it fails upstream. */ * if it fails upstream. */
} }
static void request_configure(ckpool_t *ckp, connsock_t *cs, proxy_instance_t *proxy) static void request_configure(connsock_t *cs, proxy_instance_t *proxy)
{ {
json_t *req; json_t *req;
bool ret; bool ret;
@ -2175,7 +2175,7 @@ static bool proxy_alive(ckpool_t *ckp, proxy_instance_t *proxi, connsock_t *cs,
} }
/* Put a request for mining configure to see if the upstream pool /* Put a request for mining configure to see if the upstream pool
* supports version_mask */ * supports version_mask */
request_configure(ckp, cs, proxi); request_configure(cs, proxi);
parent->auth_status = STATUS_SUCCESS; parent->auth_status = STATUS_SUCCESS;
proxi->authorised = ret = true; proxi->authorised = ret = true;
parent->backoff = 0; parent->backoff = 0;

2
src/stratifier.c

@ -3058,7 +3058,7 @@ void stratum_set_proxy_vmask(ckpool_t *ckp, int id, int subid, uint32_t version_
proxy = existing_subproxy(ckp->sdata, id, subid); proxy = existing_subproxy(ckp->sdata, id, subid);
proxy->version_mask = version_mask; proxy->version_mask = version_mask;
LOGWARNING("Stratum Proxy %d:%d had version mask set to %08x", id, subid, version_mask); LOGINFO("Stratum Proxy %d:%d had version mask set to %08x", id, subid, version_mask);
} }
static void stratum_send_diff(sdata_t *sdata, const stratum_instance_t *client); static void stratum_send_diff(sdata_t *sdata, const stratum_instance_t *client);

Loading…
Cancel
Save