mirror of
https://git.wownero.com/wownero/wownero.git
synced 2024-08-15 01:03:23 +00:00
miner: use verification mode for low diff one block nonce searches
This avoids lengthy init times when testing
This commit is contained in:
parent
5e384f21b5
commit
c2095fc27b
1 changed files with 1 additions and 1 deletions
|
@ -476,7 +476,7 @@ namespace cryptonote
|
||||||
for(; bl.nonce != std::numeric_limits<uint32_t>::max(); bl.nonce++)
|
for(; bl.nonce != std::numeric_limits<uint32_t>::max(); bl.nonce++)
|
||||||
{
|
{
|
||||||
crypto::hash h;
|
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))
|
if(check_hash(h, diffic))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue