|
|
@@ -87,6 +87,7 @@ static char packagename[255];
|
|
|
bool opt_protocol;
|
|
|
static bool opt_benchmark;
|
|
|
bool have_longpoll;
|
|
|
+int opt_skip_checks;
|
|
|
bool want_per_device_stats;
|
|
|
bool use_syslog;
|
|
|
bool opt_quiet;
|
|
|
@@ -1055,6 +1056,9 @@ static struct opt_table opt_config_table[] = {
|
|
|
OPT_WITH_ARG("--shares",
|
|
|
opt_set_intval, NULL, &opt_shares,
|
|
|
"Quit after mining N shares (default: unlimited)"),
|
|
|
+ OPT_WITH_ARG("--skip-security-checks",
|
|
|
+ set_int_0_to_9999, NULL, &opt_skip_checks,
|
|
|
+ "Skip security checks sometimes to save bandwidth; only check 1/<arg>th of the time (default: never skip)"),
|
|
|
OPT_WITH_ARG("--socks-proxy",
|
|
|
opt_set_charp, NULL, &opt_socks_proxy,
|
|
|
"Set socks4 proxy (host:port)"),
|
|
|
@@ -4349,6 +4353,8 @@ static void *stratum_thread(void *userdata)
|
|
|
|
|
|
pthread_detach(pthread_self());
|
|
|
|
|
|
+ srand(time(NULL) + (intptr_t)userdata);
|
|
|
+
|
|
|
while (42) {
|
|
|
struct timeval timeout;
|
|
|
fd_set rd;
|