From 7e8ce9c8dd069a848479531c2e0d47e1697a5f4b Mon Sep 17 00:00:00 2001 From: pooler Date: Wed, 3 Jul 2013 18:02:47 +0200 Subject: [PATCH] Avoid the use of Stratum in benchmark mode --- cpu-miner.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cpu-miner.c b/cpu-miner.c index e4e79e7..7317692 100644 --- a/cpu-miner.c +++ b/cpu-miner.c @@ -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, ':'); @@ -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;