Browse Source

Do not allow benchmark mode to be used with scrypt.

Con Kolivas 12 years ago
parent
commit
cb6d62de08
1 changed files with 2 additions and 0 deletions
  1. 2 0
      cgminer.c

+ 2 - 0
cgminer.c

@@ -7477,6 +7477,8 @@ int main(int argc, char *argv[])
 	if (opt_benchmark) {
 	if (opt_benchmark) {
 		struct pool *pool;
 		struct pool *pool;
 
 
+		if (opt_scrypt)
+			quit(1, "Cannot use benchmark mode with scrypt");
 		pool = add_pool();
 		pool = add_pool();
 		pool->rpc_url = malloc(255);
 		pool->rpc_url = malloc(255);
 		strcpy(pool->rpc_url, "Benchmark");
 		strcpy(pool->rpc_url, "Benchmark");