diff options
| author | Ross Nicoll <[email protected]> | 2015-08-04 22:32:01 +0100 |
|---|---|---|
| committer | Ross Nicoll <[email protected]> | 2015-08-04 22:32:01 +0100 |
| commit | 85e166b504a6c4f7367e83f29068680c3680be67 (patch) | |
| tree | 6b61b052a2e757fecfd04e662f7efeeb975e9363 /src/chainparams.cpp | |
| parent | Merge pull request #1221 from langerhans/1.10-dev-tests (diff) | |
| download | discoin-85e166b504a6c4f7367e83f29068680c3680be67.tar.xz discoin-85e166b504a6c4f7367e83f29068680c3680be67.zip | |
Update time-based constants
This updated various time-based constants to more closely reflect values
appropriate to Dogecoin:
* Number of blocks to look back for BIP 66 enforcement is doubled on
main net (to about a day and a half's worth, vs 5 days on Bitcoin),
and raised to 1,000 on testnet (bringing it up to the same quantity
as Bitcoin testnet).
* BIP 66 enforcement cut-offs are scaled up appropriate.
* Minimum number of blocks and blockchain size are increased for
pruning. In comparison to Bitcoin this uses 24 hours as a minimum,
rather than 48, although given blocks are rarely full this likely
reflects a lot longer in reality.
Diffstat (limited to 'src/chainparams.cpp')
| -rw-r--r-- | src/chainparams.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/chainparams.cpp b/src/chainparams.cpp index c98a4b7e4..3720dc6c7 100644 --- a/src/chainparams.cpp +++ b/src/chainparams.cpp @@ -37,9 +37,9 @@ public: // Blocks 0 - 144999 are conventional difficulty calculation consensus.nSubsidyHalvingInterval = 100000; - consensus.nMajorityEnforceBlockUpgrade = 750; - consensus.nMajorityRejectBlockOutdated = 950; - consensus.nMajorityWindow = 1000; + consensus.nMajorityEnforceBlockUpgrade = 1500; + consensus.nMajorityRejectBlockOutdated = 1900; + consensus.nMajorityWindow = 2000; consensus.powLimit = uint256S("0x00000fffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"); // ~uint256(0) >> 20; consensus.nPowTargetTimespan = 4 * 60 * 60; // pre-digishield: 4 hours consensus.nPowTargetSpacing = 60; // 1 minute @@ -181,9 +181,9 @@ public: consensus.fDigishieldDifficultyCalculation = false; consensus.fPowAllowMinDifficultyBlocks = true; consensus.fPowAllowDigishieldMinDifficultyBlocks = false; - consensus.nMajorityEnforceBlockUpgrade = 51; - consensus.nMajorityRejectBlockOutdated = 75; - consensus.nMajorityWindow = 100; + consensus.nMajorityEnforceBlockUpgrade = 501; + consensus.nMajorityRejectBlockOutdated = 750; + consensus.nMajorityWindow = 1000; consensus.fStrictChainId = false; consensus.nHeightEffective = 0; consensus.fAllowLegacyBlocks = true; |