aboutsummaryrefslogtreecommitdiff
path: root/src/validation.cpp
diff options
context:
space:
mode:
authorRoss Nicoll <[email protected]>2017-04-18 13:36:32 +0100
committerRoss Nicoll <[email protected]>2021-06-02 10:37:16 +0100
commit3afaf906f1d7b2717d3326d487a5daf77126ec24 (patch)
tree57c51934f9fa5537b80fca8431a7ed4fbf6a8ccc /src/validation.cpp
parentcrypto: Add scrypt N=1024 PoW (diff)
downloaddiscoin-3afaf906f1d7b2717d3326d487a5daf77126ec24.tar.xz
discoin-3afaf906f1d7b2717d3326d487a5daf77126ec24.zip
Replace consensus values with Dogecoin equivalents
* Replace chain parameters with Dogecoin values * Update maximum coins to match Dogecoin * Disable version 2 block requirement * Update coinbase maturity to match Dogecoin
Diffstat (limited to 'src/validation.cpp')
-rw-r--r--src/validation.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/validation.cpp b/src/validation.cpp
index 4240f0c09..481eb0359 100644
--- a/src/validation.cpp
+++ b/src/validation.cpp
@@ -3526,8 +3526,8 @@ static bool ContextualCheckBlockHeader(const CBlockHeader& block, BlockValidatio
// Reject outdated version blocks when 95% (75% on testnet) of the network has upgraded:
// check for version 2, 3 and 4 upgrades
- if((block.nVersion < 2 && nHeight >= consensusParams.BIP34Height) ||
- (block.nVersion < 3 && nHeight >= consensusParams.BIP66Height) ||
+ // Dogecoin: Version 2 enforcement was never used
+ if((block.nVersion < 3 && nHeight >= consensusParams.BIP66Height) ||
(block.nVersion < 4 && nHeight >= consensusParams.BIP65Height))
return state.Invalid(BlockValidationResult::BLOCK_INVALID_HEADER, strprintf("bad-version(0x%08x)", block.nVersion),
strprintf("rejected nVersion=0x%08x block", block.nVersion));