Fix parameters passed with getblockhash
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,