1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-03-09 20:21:01 +00:00

Put a lower limit on the nonce increment in cpu mining.

This commit is contained in:
Con Kolivas 2011-08-23 12:34:32 +10:00
parent 175ef7d936
commit d9accc4846

2
main.c
View File

@ -3372,6 +3372,8 @@ static void *miner_thread(void *userdata)
nonce_inc = next_inc;
} else if (!diff.tv_sec)
nonce_inc = hashes_done * 2;
if (nonce_inc < 4)
nonce_inc = 0xffffff;
max64 = work->blk.nonce + nonce_inc;
if (max64 > 0xfffffffaULL)
max64 = 0xfffffffaULL;