From be82cc7fbaaa265a252067360021094f46b2696d Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Tue, 6 Nov 2012 14:01:32 +1100 Subject: [PATCH] Reset work flags to prevent GBT shares from being submitted as stratum ones after switching. --- cgminer.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cgminer.c b/cgminer.c index 6e64157f..8035de41 100644 --- a/cgminer.c +++ b/cgminer.c @@ -5206,6 +5206,8 @@ static void get_work(struct work *work, struct thr_info *thr, const int thr_id) goto out; } + /* Reset these flags in case we switch pools with these work structs */ + work->stratum = work->gbt = false; retry: pool = current_pool();