From c2095fc27baa2a94589f01f3600c7ef0e392da4a Mon Sep 17 00:00:00 2001 From: moneromooo-monero Date: Mon, 28 Oct 2019 14:12:14 +0000 Subject: miner: use verification mode for low diff one block nonce searches This avoids lengthy init times when testing --- src/cryptonote_basic/miner.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cryptonote_basic/miner.cpp b/src/cryptonote_basic/miner.cpp index 688aeaea3..c1e8365ac 100644 --- a/src/cryptonote_basic/miner.cpp +++ b/src/cryptonote_basic/miner.cpp @@ -476,7 +476,7 @@ namespace cryptonote for(; bl.nonce != std::numeric_limits::max(); bl.nonce++) { crypto::hash h; - gbh(bl, height, tools::get_max_concurrency(), h); + gbh(bl, height, diffic <= 100 ? 0 : tools::get_max_concurrency(), h); if(check_hash(h, diffic)) { -- cgit v1.2.3