From 8c0ab5f31008f2cba8680a1cae20c895f43ef4d0 Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Wed, 25 Sep 2013 23:18:17 +1000 Subject: [PATCH] Last result returned by BF1 is an end of results marker so ignore it. --- driver-bitfury.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/driver-bitfury.c b/driver-bitfury.c index 7559d7ea..5d3242e8 100644 --- a/driver-bitfury.c +++ b/driver-bitfury.c @@ -199,8 +199,9 @@ static int64_t bitfury_scanhash(struct thr_info *thr, struct work *work, if (unlikely(!info->prevwork2)) goto cascade; - /* Search for what work the nonce matches in order of likelihood. */ - for (i = 0; i < info->tot; i += 7) { + /* Search for what work the nonce matches in order of likelihood. Last + * entry is end of result marker. */ + for (i = 0; i < info->tot - 7; i += 7) { uint32_t nonce; /* Ignore state & switched data in results for now. */