doc: clarify that testnet min-difficulty is not optional

This commit is contained in:
Sjors Provoost 2025-03-19 08:59:08 +01:00
parent e568c1dd13
commit 288481aabd
No known key found for this signature in database
GPG key ID: 57FF9BDBCC301009

View file

@ -23,7 +23,7 @@ unsigned int GetNextWorkRequired(const CBlockIndex* pindexLast, const CBlockHead
{ {
// Special difficulty rule for testnet: // Special difficulty rule for testnet:
// If the new block's timestamp is more than 2* 10 minutes // If the new block's timestamp is more than 2* 10 minutes
// then allow mining of a min-difficulty block. // then it MUST be a min-difficulty block.
if (pblock->GetBlockTime() > pindexLast->GetBlockTime() + params.nPowTargetSpacing*2) if (pblock->GetBlockTime() > pindexLast->GetBlockTime() + params.nPowTargetSpacing*2)
return nProofOfWorkLimit; return nProofOfWorkLimit;
else else