From d9accc48466f8c57780c9539799c3656ad007f9d Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Tue, 23 Aug 2011 12:34:32 +1000 Subject: [PATCH] Put a lower limit on the nonce increment in cpu mining. --- main.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/main.c b/main.c index c52ce7f7..cbeaa611 100644 --- a/main.c +++ b/main.c @@ -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;