1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-01-11 07:17:58 +00:00

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

This commit is contained in:
Con Kolivas 2012-07-05 17:15:18 +10:00
parent 274a40115e
commit 9d9963b088

View File

@ -298,7 +298,8 @@ re_send:
nonce = (uint32_t *)(ob + 8 + 32 + 12); nonce = (uint32_t *)(ob + 8 + 32 + 12);
*nonce = htobe32(work->blk.nonce); *nonce = htobe32(work->blk.nonce);
nonce = (uint32_t *)(ob + 8 + 32 + 12 + 4); 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); *nonce = htobe32(work->blk.nonce + bitforce->nonces);
work->blk.nonce += bitforce->nonces + 1; work->blk.nonce += bitforce->nonces + 1;
sprintf((char *)ob + 8 + 32 + 12 + 8, ">>>>>>>>"); sprintf((char *)ob + 8 + 32 + 12 + 8, ">>>>>>>>");