aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Blair <snipa@jagtech.io>2020-02-07 00:17:24 -0800
committerAlexander Blair <snipa@jagtech.io>2020-02-07 00:17:24 -0800
commit6b2b1d6368f5164b5354cd5826edd09c4de00cad (patch)
tree52228a91aa90fc9faba8eda3d5930b4037355455
parentMerge pull request #6184 (diff)
parentminer: use verification mode for low diff one block nonce searches (diff)
downloadmonero-6b2b1d6368f5164b5354cd5826edd09c4de00cad.tar.xz
Merge pull request #6048
c2095fc2 miner: use verification mode for low diff one block nonce searches (moneromooo-monero)
-rw-r--r--src/cryptonote_basic/miner.cpp2
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))
{