Commit cb6d62de08995cb3ce2ae906dfa629f42d382c21

Con Kolivas 2013-08-09T06:48:59

Do not allow benchmark mode to be used with scrypt.

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/cgminer.c b/cgminer.c
index ef2f331..788ceb3 100644
--- a/cgminer.c
+++ b/cgminer.c
@@ -7477,6 +7477,8 @@ int main(int argc, char *argv[])
 	if (opt_benchmark) {
 		struct pool *pool;
 
+		if (opt_scrypt)
+			quit(1, "Cannot use benchmark mode with scrypt");
 		pool = add_pool();
 		pool->rpc_url = malloc(255);
 		strcpy(pool->rpc_url, "Benchmark");