Browse Source

Merge commit '81b88e3' into bfgminer

Conflicts:
	miner.c
Luke Dashjr 12 years ago
parent
commit
b833443d6a
2 changed files with 6 additions and 3 deletions
  1. 4 0
      api.c
  2. 2 3
      miner.c

+ 4 - 0
api.c

@@ -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) {

+ 2 - 3
miner.c

@@ -116,10 +116,9 @@ struct _cbscript_t {
 static struct _cbscript_t opt_coinbase_script;
 static uint32_t template_nonce;
 #endif
-#if BLKMAKER_VERSION < 1
-const
-#endif
+#if BLKMAKER_VERSION > 0
 char *opt_coinbase_sig;
+#endif
 char *request_target_str;
 float request_pdiff = 1.0;
 double request_bdiff;