From 914e88bbad25bb147b3b53f9263fcdafcf1c294e Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Sun, 4 Nov 2012 08:46:58 +1100 Subject: [PATCH] Skip trying to decipher LP url if we have GBT support. --- cgminer.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cgminer.c b/cgminer.c index 518324c0..dc5682f3 100644 --- a/cgminer.c +++ b/cgminer.c @@ -1504,7 +1504,6 @@ static void gen_gbt_work(struct pool *pool, struct work *work) work->work_block = work_block; calc_diff(work, 0); gettimeofday(&work->tv_staged, NULL); - } static bool gbt_decode(struct pool *pool, json_t *res_val) @@ -4778,7 +4777,7 @@ retry_stratum: } json_decref(val); - if (pool->lp_url) + if (pool->lp_url || pool->has_gbt) goto out; /* Decipher the longpoll URL, if any, and store it in ->lp_url */