1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-01-23 13:04:29 +00:00

Skip trying to decipher LP url if we have GBT support.

This commit is contained in:
Con Kolivas 2012-11-04 08:46:58 +11:00
parent c5c5fb8273
commit 914e88bbad

View File

@ -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 */