Commit 54b780c2049bef670047a01504c88596bd2bcbd2

Con Kolivas 2014-04-15T16:01:30

Fix parameters passed with getblockhash

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/cgminer.c b/cgminer.c
index 9e40c88..eb8346a 100644
--- a/cgminer.c
+++ b/cgminer.c
@@ -7883,7 +7883,7 @@ retry_pool:
 					continue;
 				}
 
-				sprintf(lpreq, "{\"id\": 0, \"method\": \"getblockhash %d\"}\n", height);
+				sprintf(lpreq, "{\"id\": 0, \"method\": \"getblockhash\", \"params\": [%d]}\n", height);
 				get_gbt_curl(pool, 500);
 				curl_easy_setopt(pool->gbt_curl, CURLOPT_FORBID_REUSE, 1);
 				val = json_rpc_call(pool->gbt_curl, pool->rpc_url, pool->rpc_userpass,