mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-25 02:33:24 -03:00
consensus: lower regtest nPowTargetTimespan to 144
This currently has no effect due to fPowNoRetargeting, except for the getnetworkhashps when called with -1. It will when the next commit enforces the timewarp attack mitigation on regtest.
This commit is contained in:
parent
d79ea809d2
commit
dd154b0568
2 changed files with 2 additions and 2 deletions
|
@ -537,7 +537,7 @@ public:
|
|||
consensus.SegwitHeight = 0; // Always active unless overridden
|
||||
consensus.MinBIP9WarningHeight = 0;
|
||||
consensus.powLimit = uint256{"7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"};
|
||||
consensus.nPowTargetTimespan = 14 * 24 * 60 * 60; // two weeks
|
||||
consensus.nPowTargetTimespan = 24 * 60 * 60; // one day
|
||||
consensus.nPowTargetSpacing = 10 * 60;
|
||||
consensus.fPowAllowMinDifficultyBlocks = true;
|
||||
consensus.enforce_BIP94 = false;
|
||||
|
|
|
@ -58,7 +58,7 @@ TIME_RANGE_STEP = 600 # ten-minute steps
|
|||
TIME_RANGE_MTP = TIME_GENESIS_BLOCK + (HEIGHT - 6) * TIME_RANGE_STEP
|
||||
TIME_RANGE_TIP = TIME_GENESIS_BLOCK + (HEIGHT - 1) * TIME_RANGE_STEP
|
||||
TIME_RANGE_END = TIME_GENESIS_BLOCK + HEIGHT * TIME_RANGE_STEP
|
||||
DIFFICULTY_ADJUSTMENT_INTERVAL = 2016
|
||||
DIFFICULTY_ADJUSTMENT_INTERVAL = 144
|
||||
|
||||
|
||||
class BlockchainTest(BitcoinTestFramework):
|
||||
|
|
Loading…
Add table
Reference in a new issue