Avoid the use of Stratum in benchmark mode
This commit is contained in:
parent
236e338463
commit
7e8ce9c8dd
1 changed files with 2 additions and 1 deletions
|
@ -1129,7 +1129,7 @@ static void parse_arg (int key, char *arg)
|
||||||
}
|
}
|
||||||
memmove(ap, p + 1, strlen(p + 1) + 1);
|
memmove(ap, p + 1, strlen(p + 1) + 1);
|
||||||
}
|
}
|
||||||
have_stratum = !strncasecmp(rpc_url, "stratum", 7);
|
have_stratum = !opt_benchmark && !strncasecmp(rpc_url, "stratum", 7);
|
||||||
break;
|
break;
|
||||||
case 'O': /* --userpass */
|
case 'O': /* --userpass */
|
||||||
p = strchr(arg, ':');
|
p = strchr(arg, ':');
|
||||||
|
@ -1167,6 +1167,7 @@ static void parse_arg (int key, char *arg)
|
||||||
opt_benchmark = true;
|
opt_benchmark = true;
|
||||||
want_longpoll = false;
|
want_longpoll = false;
|
||||||
want_stratum = false;
|
want_stratum = false;
|
||||||
|
have_stratum = false;
|
||||||
break;
|
break;
|
||||||
case 1003:
|
case 1003:
|
||||||
want_longpoll = false;
|
want_longpoll = false;
|
||||||
|
|
Loading…
Reference in a new issue