Browse Source

Default scan timeout of 5 seconds is way too short leading to abandoning blocks too early and being seen as an "inefficient" miner. Increase it to 60.

Con Kolivas 14 years ago
parent
commit
0cef8f8da4
1 changed files with 2 additions and 2 deletions
  1. 2 2
      cpu-miner.c

+ 2 - 2
cpu-miner.c

@@ -120,7 +120,7 @@ static bool opt_quiet = false;
 static int opt_retries = 10;
 static int opt_retries = 10;
 static int opt_fail_pause = 30;
 static int opt_fail_pause = 30;
 static int opt_log_interval = 5;
 static int opt_log_interval = 5;
-int opt_scantime = 5;
+int opt_scantime = 60;
 static json_t *opt_config;
 static json_t *opt_config;
 static const bool opt_time = true;
 static const bool opt_time = true;
 #ifdef WANT_X8664_SSE2
 #ifdef WANT_X8664_SSE2
@@ -208,7 +208,7 @@ static struct option_help options_help[] = {
 
 
 	{ "scantime N",
 	{ "scantime N",
 	  "(-s N) Upper bound on time spent scanning current work,\n"
 	  "(-s N) Upper bound on time spent scanning current work,\n"
-	  "\tin seconds. (default: 5)" },
+	  "\tin seconds. (default: 60)" },
 
 
 #ifdef HAVE_SYSLOG_H
 #ifdef HAVE_SYSLOG_H
 	{ "syslog",
 	{ "syslog",