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]>2019-04-03 05:16:26 +0000
commit6d635e8914541f237cdc577bc6632563be543d7b (patch)
treeb7c42e4d87a90c1e6272632e01e536776d9a73ef /src/validation.cpp
parentUpdate DB version to 5.1 (diff)
downloaddiscoin-6d635e8914541f237cdc577bc6632563be543d7b.tar.xz
discoin-6d635e8914541f237cdc577bc6632563be543d7b.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 2b0552c60..860a3fd3c 100644
--- a/src/validation.cpp
+++ b/src/validation.cpp
@@ -3255,8 +3255,8 @@ static bool ContextualCheckBlockHeader(const CBlockHeader& block, CValidationSta
// 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(false, REJECT_OBSOLETE, strprintf("bad-version(0x%08x)", block.nVersion),
strprintf("rejected nVersion=0x%08x block", block.nVersion));