|
|
@@ -1365,7 +1365,9 @@ static void minerconfig(struct io_data *io_data, __maybe_unused SOCKETTYPE c, __
|
|
|
root = api_add_int(root, "ScanTime", &opt_scantime, false);
|
|
|
root = api_add_int(root, "Queue", &opt_queue, false);
|
|
|
root = api_add_int(root, "Expiry", &opt_expiry, false);
|
|
|
+#if BLKMAKER_VERSION > 0
|
|
|
root = api_add_string(root, "Coinbase-Sig", opt_coinbase_sig, true);
|
|
|
+#endif
|
|
|
|
|
|
root = print_data(root, buf, isjson, false);
|
|
|
io_add(io_data, buf);
|
|
|
@@ -2959,12 +2961,14 @@ static void setconfig(struct io_data *io_data, __maybe_unused SOCKETTYPE c, char
|
|
|
|
|
|
*(comma++) = '\0';
|
|
|
|
|
|
+#if BLKMAKER_VERSION > 0
|
|
|
if (strcasecmp(param, "coinbase-sig") == 0) {
|
|
|
free(opt_coinbase_sig);
|
|
|
opt_coinbase_sig = strdup(comma);
|
|
|
message(io_data, MSG_SETCONFIG, 1, param, isjson);
|
|
|
return;
|
|
|
}
|
|
|
+#endif
|
|
|
|
|
|
value = atoi(comma);
|
|
|
if (value < 0 || value > 9999) {
|