diff options
| author | Ross Nicoll <[email protected]> | 2015-07-06 00:07:37 +0100 |
|---|---|---|
| committer | Ross Nicoll <[email protected]> | 2015-07-19 16:42:23 +0000 |
| commit | 8d5284422914164f73bfbdf3b275879da355af30 (patch) | |
| tree | 3b366f4a558e4814b75bff32d1cfbd1e68218cdf /src/pow.cpp | |
| parent | Modify chain consensus parameters to be height aware (diff) | |
| download | discoin-8d5284422914164f73bfbdf3b275879da355af30.tar.xz discoin-8d5284422914164f73bfbdf3b275879da355af30.zip | |
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
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(); |