Skip to content

Commit

Permalink
Avoid the use of Stratum in benchmark mode
Browse files Browse the repository at this point in the history
  • Loading branch information
pooler committed Jul 3, 2013
1 parent 236e338 commit 7e8ce9c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cpu-miner.c
Original file line number Diff line number Diff line change
Expand Up @@ -1129,7 +1129,7 @@ static void parse_arg (int key, char *arg)
}
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;
case 'O': /* --userpass */
p = strchr(arg, ':');
Expand Down Expand Up @@ -1167,6 +1167,7 @@ static void parse_arg (int key, char *arg)
opt_benchmark = true;
want_longpoll = false;
want_stratum = false;
have_stratum = false;
break;
case 1003:
want_longpoll = false;
Expand Down

0 comments on commit 7e8ce9c

Please sign in to comment.