Commit c315fa243a544dcbe003ce4d821fb1d24ebad887

Con Kolivas 2014-04-15T15:54:38

Check the block hash with the proper command when looking for orphan chains

1
2
3
4
5
6
7
8
9
10
11
12
diff --git a/cgminer.c b/cgminer.c
index d88d2e3..9e40c88 100644
--- a/cgminer.c
+++ b/cgminer.c
@@ -7883,6 +7883,7 @@ retry_pool:
 					continue;
 				}
 
+				sprintf(lpreq, "{\"id\": 0, \"method\": \"getblockhash %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,