aboutsummaryrefslogtreecommitdiff
path: root/src/cryptonote_basic
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2019-10-28 14:12:14 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2020-02-06 14:27:10 +0000
commitc2095fc27baa2a94589f01f3600c7ef0e392da4a (patch)
tree52228a91aa90fc9faba8eda3d5930b4037355455 /src/cryptonote_basic
parentMerge pull request #6184 (diff)
downloadmonero-c2095fc27baa2a94589f01f3600c7ef0e392da4a.tar.xz
miner: use verification mode for low diff one block nonce searches
This avoids lengthy init times when testing
Diffstat (limited to 'src/cryptonote_basic')
-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))
{