Commit 5a096c1c13ae6cf7802098472b167e32f7846a91

Con Kolivas 2012-07-05T22:39:11

Set nonce to maximum once we determine nonce range support is broken.

1
2
3
4
5
6
7
8
9
10
11
12
diff --git a/driver-bitforce.c b/driver-bitforce.c
index 86bc823..21a86ff 100644
--- a/driver-bitforce.c
+++ b/driver-bitforce.c
@@ -399,6 +399,7 @@ static uint64_t bitforce_get_result(struct thr_info *thr, struct work *work)
 			(work->blk.nonce > 0 && nonce < work->blk.nonce - bitforce->nonces - 1)))) {
 				applog(LOG_DEBUG, "BFL%i: Disabling broken nonce range support", bitforce->device_id);
 				bitforce->nonce_range = false;
+				work->blk.nonce = 0xffffffff;
 		}
 			
 		submit_nonce(thr, work, nonce);