From 8d5284422914164f73bfbdf3b275879da355af30 Mon Sep 17 00:00:00 2001 From: Ross Nicoll Date: Mon, 6 Jul 2015 00:07:37 +0100 Subject: Minor Dogecoin consensus fixes Updated maximum coins to match Dogecoin. Updated protocol version to disable connections to pre-AuxPoW clients. Disable version 2 block requirement Update coinbase maturity to match Dogecoin --- src/pow.cpp | 16 ---------------- 1 file changed, 16 deletions(-) (limited to 'src/pow.cpp') diff --git a/src/pow.cpp b/src/pow.cpp index 772e11f2f..a0fac9219 100644 --- a/src/pow.cpp +++ b/src/pow.cpp @@ -12,22 +12,6 @@ #include "uint256.h" #include "util.h" -// Determine if the for the given block, a min difficulty setting applies -bool AllowMinDifficultyForBlock(const CBlockIndex* pindexLast, const CBlockHeader *pblock, const Consensus::Params& params) -{ - // check if the chain allows minimum difficulty blocks - if (!params.fPowAllowMinDifficultyBlocks) - return false; - - // Dogecoin: Magic number at which reset protocol switches - // check if we allow minimum difficulty at this block-height - if (pindexLast->nHeight < 157500) - return false; - - // Allow for a minimum block time if the elapsed time > 2*nTargetSpacing - return (pblock->GetBlockTime() > pindexLast->GetBlockTime() + params.nPowTargetSpacing*2); -} - unsigned int GetNextWorkRequired(const CBlockIndex* pindexLast, const CBlockHeader *pblock, const Consensus::Params& params) { unsigned int nProofOfWorkLimit = UintToArith256(params.powLimit).GetCompact(); -- cgit v1.2.3