|
|
|
@ -116,7 +116,7 @@ static bool GenerateBlock(ChainstateManager& chainman, CBlock& block, uint64_t&
|
|
|
|
|
|
|
|
|
|
CChainParams chainparams(Params());
|
|
|
|
|
|
|
|
|
|
while (max_tries > 0 && block.nNonce < std::numeric_limits<uint32_t>::max() && !CheckProofOfWork(block.GetHash(), block.nBits, chainparams.GetConsensus()) && !ShutdownRequested()) {
|
|
|
|
|
while (max_tries > 0 && block.nNonce < std::numeric_limits<uint32_t>::max() && !CheckProofOfWork(block.GetPoWHash(), block.nBits, chainparams.GetConsensus()) && !ShutdownRequested()) {
|
|
|
|
|
++block.nNonce;
|
|
|
|
|
--max_tries;
|
|
|
|
|
}
|
|
|
|
|