|
|
@ -168,6 +168,7 @@ static const char *algo_names[] = { |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
bool opt_debug = false; |
|
|
|
bool opt_debug = false; |
|
|
|
|
|
|
|
bool opt_debug_rpc = false; |
|
|
|
bool opt_protocol = false; |
|
|
|
bool opt_protocol = false; |
|
|
|
bool opt_benchmark = false; |
|
|
|
bool opt_benchmark = false; |
|
|
|
bool want_longpoll = true; |
|
|
|
bool want_longpoll = true; |
|
|
@ -522,6 +523,10 @@ static bool submit_upstream_work(CURL *curl, struct work *work) |
|
|
|
json_decref(val); |
|
|
|
json_decref(val); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (opt_debug_rpc) { |
|
|
|
|
|
|
|
applog(LOG_DEBUG, "submit: %s", s); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
rc = true; |
|
|
|
rc = true; |
|
|
|
|
|
|
|
|
|
|
|
out: |
|
|
|
out: |
|
|
@ -1325,6 +1330,7 @@ static void parse_arg (int key, char *arg) |
|
|
|
break; |
|
|
|
break; |
|
|
|
case 'D': |
|
|
|
case 'D': |
|
|
|
opt_debug = true; |
|
|
|
opt_debug = true; |
|
|
|
|
|
|
|
opt_debug_rpc = true; |
|
|
|
break; |
|
|
|
break; |
|
|
|
case 'p': |
|
|
|
case 'p': |
|
|
|
free(rpc_pass); |
|
|
|
free(rpc_pass); |
|
|
|