Add AllowMinDifficultyBlocks chain parameter

This commit is contained in:
jtimon
2014-03-22 20:09:12 +01:00
parent d754f34e8d
commit 21913a9ac9
4 changed files with 8 additions and 4 deletions

View File

@@ -632,7 +632,7 @@ void static BitcoinMiner(CWallet *pwallet)
// Update nTime every few seconds
UpdateTime(*pblock, pindexPrev);
nBlockTime = ByteReverse(pblock->nTime);
if (TestNet())
if (Params().AllowMinDifficultyBlocks())
{
// Changing pblock->nTime can change work required on testnet:
nBlockBits = ByteReverse(pblock->nBits);