1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-01-23 13:04:29 +00:00

Stratum does not currently have any proxy support so do not try to switch to stratum if a proxy has been specified.

This commit is contained in:
Con Kolivas 2012-10-05 00:08:49 +10:00
parent deb0a9b644
commit 51c499a5ae

View File

@ -4241,8 +4241,9 @@ retry_stratum:
gettimeofday(&tv_getwork_reply, NULL); gettimeofday(&tv_getwork_reply, NULL);
/* Detect if a http getwork pool has an X-Stratum header at startup, /* Detect if a http getwork pool has an X-Stratum header at startup,
* and if so, switch to that in preference to getwork */ * and if so, switch to that in preference to getwork. Currently no
if (unlikely(pool->stratum_url)) { * proxy support so don't try to switch if a proxy is in use. */
if (unlikely(pool->stratum_url && !pool->rpc_proxy)) {
applog(LOG_NOTICE, "Switching pool %d %s to %s", pool->pool_no, pool->rpc_url, pool->stratum_url); applog(LOG_NOTICE, "Switching pool %d %s to %s", pool->pool_no, pool->rpc_url, pool->stratum_url);
pool->has_stratum = true; pool->has_stratum = true;
pool->rpc_url = pool->stratum_url; pool->rpc_url = pool->stratum_url;