|
|
@ -2043,7 +2043,11 @@ static void *get_work_thread(void *userdata) |
|
|
|
else |
|
|
|
else |
|
|
|
ret_work->thr = NULL; |
|
|
|
ret_work->thr = NULL; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (opt_benchmark) |
|
|
|
|
|
|
|
get_benchmark_work(ret_work); |
|
|
|
|
|
|
|
else { |
|
|
|
pool = ret_work->pool = select_pool(wc->lagging); |
|
|
|
pool = ret_work->pool = select_pool(wc->lagging); |
|
|
|
|
|
|
|
|
|
|
|
ce = pop_curl_entry(pool); |
|
|
|
ce = pop_curl_entry(pool); |
|
|
|
|
|
|
|
|
|
|
|
/* obtain new work from bitcoin via JSON-RPC */ |
|
|
|
/* obtain new work from bitcoin via JSON-RPC */ |
|
|
@ -2062,6 +2066,7 @@ static void *get_work_thread(void *userdata) |
|
|
|
fail_pause += opt_fail_pause; |
|
|
|
fail_pause += opt_fail_pause; |
|
|
|
} |
|
|
|
} |
|
|
|
fail_pause = opt_fail_pause; |
|
|
|
fail_pause = opt_fail_pause; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
applog(LOG_DEBUG, "Pushing work to requesting thread"); |
|
|
|
applog(LOG_DEBUG, "Pushing work to requesting thread"); |
|
|
|
|
|
|
|
|
|
|
@ -2074,6 +2079,7 @@ static void *get_work_thread(void *userdata) |
|
|
|
|
|
|
|
|
|
|
|
out: |
|
|
|
out: |
|
|
|
workio_cmd_free(wc); |
|
|
|
workio_cmd_free(wc); |
|
|
|
|
|
|
|
if (!opt_benchmark) |
|
|
|
push_curl_entry(ce, pool); |
|
|
|
push_curl_entry(ce, pool); |
|
|
|
return NULL; |
|
|
|
return NULL; |
|
|
|
} |
|
|
|
} |
|
|
|