Changeset View
Changeset View
Standalone View
Standalone View
src/chainparams.cpp
Show First 20 Lines • Show All 500 Lines • ▼ Show 20 Lines | |||||
*/ | */ | ||||
class CRegTestParams : public CChainParams { | class CRegTestParams : public CChainParams { | ||||
public: | public: | ||||
CRegTestParams() { | CRegTestParams() { | ||||
strNetworkID = CBaseChainParams::REGTEST; | strNetworkID = CBaseChainParams::REGTEST; | ||||
consensus.nSubsidyHalvingInterval = 150; | consensus.nSubsidyHalvingInterval = 150; | ||||
// always enforce P2SH BIP16 on regtest | // always enforce P2SH BIP16 on regtest | ||||
consensus.BIP16Height = 0; | consensus.BIP16Height = 0; | ||||
// BIP34 has not activated on regtest (far in the future so block v1 are | // BIP34 activated on regtest (Used in functional tests) | ||||
// not rejected in tests) | consensus.BIP34Height = 500; | ||||
consensus.BIP34Height = 100000000; | |||||
consensus.BIP34Hash = BlockHash(); | consensus.BIP34Hash = BlockHash(); | ||||
// BIP65 activated on regtest (Used in rpc activation tests) | // BIP65 activated on regtest (Used in functional tests) | ||||
consensus.BIP65Height = 1351; | consensus.BIP65Height = 1351; | ||||
// BIP66 activated on regtest (Used in rpc activation tests) | // BIP66 activated on regtest (Used in functional tests) | ||||
consensus.BIP66Height = 1251; | consensus.BIP66Height = 1251; | ||||
// CSV activated on regtest (Used in rpc activation tests) | // CSV activated on regtest (Used in functional tests) | ||||
consensus.CSVHeight = 576; | consensus.CSVHeight = 576; | ||||
consensus.powLimit = uint256S( | consensus.powLimit = uint256S( | ||||
"7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"); | "7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"); | ||||
// two weeks | // two weeks | ||||
consensus.nPowTargetTimespan = 14 * 24 * 60 * 60; | consensus.nPowTargetTimespan = 14 * 24 * 60 * 60; | ||||
consensus.nPowTargetSpacing = 10 * 60; | consensus.nPowTargetSpacing = 10 * 60; | ||||
consensus.fPowAllowMinDifficultyBlocks = true; | consensus.fPowAllowMinDifficultyBlocks = true; | ||||
consensus.fPowNoRetargeting = true; | consensus.fPowNoRetargeting = true; | ||||
▲ Show 20 Lines • Show All 151 Lines • Show Last 20 Lines |