Commit 6b79c3ed315f195a6a6bcc461581c8a8a1180dd1

Angus Gratton 2014-03-14T08:38:49

Drillbit: Fix for underestimating hash rate from Bitfury devices

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
diff --git a/driver-drillbit.c b/driver-drillbit.c
index 6efc1d9..a838e07 100644
--- a/driver-drillbit.c
+++ b/driver-drillbit.c
@@ -812,12 +812,10 @@ static int check_for_results(struct thr_info *thr)
 				   and this seems to avoid some result that would otherwise be rejected by the pool.
 				*/
 				if (chip->current_work[k] && drillbit_checkresults(thr, chip->current_work[k], response->nonce[i])) {
-					if (!found) {
-						chip->success_count++;
-						chip->success_auto++;
-						successful_results++;
-						found = true;
-					}
+					chip->success_count++;
+					chip->success_auto++;
+					successful_results++;
+					found = true;
 				}
 			}
 		}