miner: use verification mode for low diff one block nonce searches

This avoids lengthy init times when testing
This commit is contained in:
moneromooo-monero 2019-10-28 14:12:14 +00:00
parent 5e384f21b5
commit c2095fc27b
No known key found for this signature in database
GPG Key ID: 686F07454D6CEFC3

View File

@ -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))
{