1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-01-11 15:27:53 +00:00

Reset work flags to prevent GBT shares from being submitted as stratum ones after switching.

This commit is contained in:
Con Kolivas 2012-11-06 14:01:32 +11:00
parent d6b9442fcf
commit be82cc7fba

View File

@ -5206,6 +5206,8 @@ static void get_work(struct work *work, struct thr_info *thr, const int thr_id)
goto out; goto out;
} }
/* Reset these flags in case we switch pools with these work structs */
work->stratum = work->gbt = false;
retry: retry:
pool = current_pool(); pool = current_pool();