Browse Source

Only copy the stratum url to the rpc url if an rpc url does not exist.

nfactor-troky
Con Kolivas 12 years ago
parent
commit
ef6ad423e3
  1. 2
      cgminer.c

2
cgminer.c

@ -588,6 +588,7 @@ static char *set_url(char *arg) @@ -588,6 +588,7 @@ static char *set_url(char *arg)
arg = get_proxy(arg, pool);
if (detect_stratum(pool, arg)) {
if (!pool->rpc_url)
pool->rpc_url = strdup(pool->stratum_url);
return NULL;
}
@ -4285,6 +4286,7 @@ retry_stratum: @@ -4285,6 +4286,7 @@ retry_stratum:
* and if so, switch to that in preference to getwork if it works */
if (pool->stratum_url && stratum_works(pool)) {
applog(LOG_NOTICE, "Switching pool %d %s to %s", pool->pool_no, pool->rpc_url, pool->stratum_url);
if (!pool->rpc_url)
pool->rpc_url = strdup(pool->stratum_url);
pool->has_stratum = true;
curl_easy_cleanup(curl);

Loading…
Cancel
Save