mirror of
https://github.com/monero-project/monero.git
synced 2024-10-01 11:49:47 -04:00
Merge pull request #6048
c2095fc2
miner: use verification mode for low diff one block nonce searches (moneromooo-monero)
This commit is contained in:
commit
6b2b1d6368
@ -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 New Issue
Block a user