diff options
Diffstat (limited to 'src/pow.cpp')
| -rw-r--r-- | src/pow.cpp | 16 |
1 files changed, 0 insertions, 16 deletions
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(); |