diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2019-10-28 14:12:14 +0000 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2020-02-06 14:27:10 +0000 |
commit | c2095fc27baa2a94589f01f3600c7ef0e392da4a (patch) | |
tree | 52228a91aa90fc9faba8eda3d5930b4037355455 | |
parent | Merge pull request #6184 (diff) | |
download | monero-c2095fc27baa2a94589f01f3600c7ef0e392da4a.tar.xz |
miner: use verification mode for low diff one block nonce searches
This avoids lengthy init times when testing
-rw-r--r-- | src/cryptonote_basic/miner.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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<uint32_t>::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)) { |