Browse Source

Merge commit 'cb054f7' into bfgminer-3.0.x

Luke Dashjr 12 years ago
parent
commit
9faeab46d6
1 changed files with 4 additions and 0 deletions
  1. 4 0
      miner.c

+ 4 - 0
miner.c

@@ -3274,6 +3274,10 @@ static char *prepare_rpc_req2(struct work *work, enum pool_protocol proto, const
 			if (!caps)
 				goto gbtfail;
 			caps |= GBT_LONGPOLL;
+#if BLKMAKER_VERSION > 1
+			if (opt_coinbase_script.sz)
+				caps |= GBT_CBVALUE;
+#endif
 			json_t *req = blktmpl_request_jansson(caps, lpid);
 			if (!req)
 				goto gbtfail;