aboutsummaryrefslogtreecommitdiff
path: root/src/pow.cpp
diff options
context:
space:
mode:
authorRoss Nicoll <[email protected]>2015-07-06 00:07:37 +0100
committerRoss Nicoll <[email protected]>2015-07-19 16:42:23 +0000
commit8d5284422914164f73bfbdf3b275879da355af30 (patch)
tree3b366f4a558e4814b75bff32d1cfbd1e68218cdf /src/pow.cpp
parentModify chain consensus parameters to be height aware (diff)
downloaddiscoin-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.cpp16
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();