1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-01-10 23:08:07 +00:00

avalon: if result_wrong >= get_work_count jump out the read loop

This commit is contained in:
Xiangfu 2013-04-10 14:10:40 +08:00
parent dd1c8bd198
commit 874b25f979

View File

@ -908,6 +908,9 @@ static int64_t avalon_scanhash(struct thr_info *thr)
info->no_matching_work++;
result_wrong++;
if (result_wrong >= avalon_get_work_count)
break;
if (opt_debug) {
timersub(&tv_finish, &tv_start, &elapsed);
applog(LOG_DEBUG,"Avalon: no matching work: %d"