From ba107b006595e6fbc503fcb52ce4bd61c1d9075d Mon Sep 17 00:00:00 2001 From: grokouser Date: Wed, 29 Oct 2014 09:19:49 -0400 Subject: [PATCH] Start scanning much faster especially for higher N values. This will make minerd start scanning almost instantly for all N values. It is much faster to start the number of hashes per scan at a low value and build up then it is to start too high and work down. --- cpu-miner.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpu-miner.c b/cpu-miner.c index 075772a59..d0317b11d 100644 --- a/cpu-miner.c +++ b/cpu-miner.c @@ -902,7 +902,7 @@ static void *miner_thread(void *userdata) - time(NULL); max64 *= thr_hashrates[thr_id]; if (max64 <= 0) - max64 = (opt_algo == ALGO_SCRYPT||opt_algo == ALGO_SCRYPT_JANE) ? 0xfffLL : 0x1fffffLL; + max64 = (opt_algo == ALGO_SCRYPT||opt_algo == ALGO_SCRYPT_JANE) ? 0x1LL : 0x1fffffLL; if (work.data[19] + max64 > end_nonce) max_nonce = end_nonce; else