Commit 9d9963b088db7fa0f703387da920b1344083f7a2

Con Kolivas 2012-07-05T17:15:18

Split nonces up into 1/5 chunks when nonce range is supported.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
diff --git a/driver-bitforce.c b/driver-bitforce.c
index 2b371c1..e7c3d88 100644
--- a/driver-bitforce.c
+++ b/driver-bitforce.c
@@ -298,7 +298,8 @@ re_send:
 		nonce = (uint32_t *)(ob + 8 + 32 + 12);
 		*nonce = htobe32(work->blk.nonce);
 		nonce = (uint32_t *)(ob + 8 + 32 + 12 + 4);
-		bitforce->nonces = 0x3fffffff;
+		/* Split work up into 1/5th nonce ranges */
+		bitforce->nonces = 0x33333332;
 		*nonce = htobe32(work->blk.nonce + bitforce->nonces);
 		work->blk.nonce += bitforce->nonces + 1;
 		sprintf((char *)ob + 8 + 32 + 12 + 8, ">>>>>>>>");