diff options
| author | Ross Nicoll <[email protected]> | 2021-05-14 14:20:09 +0100 |
|---|---|---|
| committer | Ross Nicoll <[email protected]> | 2021-05-20 12:02:35 +0100 |
| commit | 878c07a847d09105bd828b9c65e83ac84da4faef (patch) | |
| tree | 31769a8e75423e205a6b986c6d5576e62675233d /src/chainparams.cpp | |
| parent | Dogecoin: Update coinbase maturity (diff) | |
| download | discoin-878c07a847d09105bd828b9c65e83ac84da4faef.tar.xz discoin-878c07a847d09105bd828b9c65e83ac84da4faef.zip | |
Change regtest block interval to match Dogecoin
Change regtest block interval to match Dogecoin mainnet. Note this differs from 1.14, which used special regtest values, however regtest should by default match mainnet and the server time is adjusted to make it feasible to mine blocks quickly.
Diffstat (limited to 'src/chainparams.cpp')
| -rw-r--r-- | src/chainparams.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/chainparams.cpp b/src/chainparams.cpp index 10f0de408..e0c2203b1 100644 --- a/src/chainparams.cpp +++ b/src/chainparams.cpp @@ -393,8 +393,8 @@ public: consensus.SegwitHeight = 0; // SEGWIT is always activated on regtest unless overridden consensus.MinBIP9WarningHeight = 0; consensus.powLimit = uint256S("7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"); - consensus.nPowTargetTimespan = 14 * 24 * 60 * 60; // two weeks - consensus.nPowTargetSpacing = 10 * 60; + consensus.nPowTargetTimespan = 4 * 60 * 60; // pre-digishield: 4 hours + consensus.nPowTargetSpacing = 60; // regtest: 60 second blocks consensus.fPowAllowMinDifficultyBlocks = true; consensus.fPowNoRetargeting = true; consensus.nRuleChangeActivationThreshold = 108; // 75% for testchains |