MCPcopy Create free account
hub / github.com/ElementsProject/elements / CTestNetParams

Method CTestNetParams

src/chainparams.cpp:328–443  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

326class CTestNetParams : public CChainParams {
327public:
328 CTestNetParams() {
329 strNetworkID = CBaseChainParams::TESTNET;
330 consensus.signet_blocks = false;
331 consensus.signet_challenge.clear();
332 consensus.nSubsidyHalvingInterval = 210000;
333 consensus.BIP16Exception = uint256S("0x00000000dd30457c001f4095d208cc1296b0eed002427aa599874af7a432b105");
334 consensus.BIP34Height = 21111;
335 consensus.BIP34Hash = uint256S("0x0000000023b3a96d3484e5abb3755c413e7d41500f8e2a5c3f0dd01299cd8ef8");
336 consensus.BIP65Height = 581885; // 00000000007f6655f22f98e72ed80d8b06dc761d5da09df0fa1dc4be4f861eb6
337 consensus.BIP66Height = 330776; // 000000002104c8c45e99a8853285a3b592602a3ccde2b832481da85e9e4ba182
338 consensus.CSVHeight = 770112; // 00000000025e930139bac5c6c31a403776da130831ab85be56578f3fa75369bb
339 consensus.SegwitHeight = 834624; // 00000000002b980fcd729daaa248fd9316a5200e9b367f4ff2c42453e84201ca
340 consensus.MinBIP9WarningHeight = 836640; // segwit activation height + miner confirmation window
341 consensus.powLimit = uint256S("00000000ffffffffffffffffffffffffffffffffffffffffffffffffffffffff");
342 consensus.nPowTargetTimespan = 14 * 24 * 60 * 60; // two weeks
343 consensus.nPowTargetSpacing = 10 * 60;
344 consensus.fPowAllowMinDifficultyBlocks = true;
345 consensus.fPowNoRetargeting = false;
346 consensus.nRuleChangeActivationThreshold = 1512; // 75% for testchains
347 consensus.nMinerConfirmationWindow = 2016; // nPowTargetTimespan / nPowTargetSpacing
348 consensus.vDeployments[Consensus::DEPLOYMENT_TESTDUMMY].bit = 28;
349 consensus.vDeployments[Consensus::DEPLOYMENT_TESTDUMMY].nStartTime = Consensus::BIP9Deployment::NEVER_ACTIVE;
350 consensus.vDeployments[Consensus::DEPLOYMENT_TESTDUMMY].nTimeout = Consensus::BIP9Deployment::NO_TIMEOUT;
351 consensus.vDeployments[Consensus::DEPLOYMENT_TESTDUMMY].min_activation_height = 0; // No activation delay
352 // DynaFed: never activate (but set to avoid use of uninitialized memory in tests)
353 consensus.vDeployments[Consensus::DEPLOYMENT_DYNA_FED].bit = 25;
354 consensus.vDeployments[Consensus::DEPLOYMENT_DYNA_FED].nStartTime = Consensus::BIP9Deployment::NEVER_ACTIVE;
355 consensus.vDeployments[Consensus::DEPLOYMENT_DYNA_FED].nTimeout = Consensus::BIP9Deployment::NO_TIMEOUT;
356 consensus.vDeployments[Consensus::DEPLOYMENT_DYNA_FED].min_activation_height = 0; // No activation delay
357
358 // Deployment of Taproot (BIPs 340-342)
359 consensus.vDeployments[Consensus::DEPLOYMENT_TAPROOT].bit = 2;
360 consensus.vDeployments[Consensus::DEPLOYMENT_TAPROOT].nStartTime = 1619222400; // April 24th, 2021
361 consensus.vDeployments[Consensus::DEPLOYMENT_TAPROOT].nTimeout = 1628640000; // August 11th, 2021
362 consensus.vDeployments[Consensus::DEPLOYMENT_TAPROOT].min_activation_height = 0; // No activation delay
363
364 // Simplicity
365 consensus.vDeployments[Consensus::DEPLOYMENT_SIMPLICITY].bit = 21;
366 consensus.vDeployments[Consensus::DEPLOYMENT_SIMPLICITY].nStartTime = Consensus::BIP9Deployment::NEVER_ACTIVE;
367 consensus.vDeployments[Consensus::DEPLOYMENT_SIMPLICITY].nTimeout = Consensus::BIP9Deployment::NO_TIMEOUT;
368 consensus.vDeployments[Consensus::DEPLOYMENT_SIMPLICITY].min_activation_height = 0; // No activation delay
369
370 consensus.nMinimumChainWork = uint256S("0x00000000000000000000000000000000000000000000064728c7be6fe4b2f961");
371 consensus.defaultAssumeValid = uint256S("0x00000000000163cfb1f97c4e4098a3692c8053ad9cab5ad9c86b338b5c00b8b7"); // 2143398
372
373 consensus.genesis_subsidy = 50*COIN;
374 consensus.connect_genesis_outputs = false;
375 consensus.subsidy_asset = CAsset();
376 anyonecanspend_aremine = false;
377 enforce_pak = false;
378 accept_unlimited_issuances = false;
379 multi_data_permitted = false;
380 accept_discount_ct = false;
381 create_discount_ct = false;
382 consensus.has_parent_chain = false;
383 g_signed_blocks = false;
384 g_con_elementsmode = false;
385 g_con_blockheightinheader = false;

Callers

nothing calls this directly

Calls 8

uint256SFunction · 0.85
CAssetClass · 0.85
CreateGenesisBlockFunction · 0.85
beginFunction · 0.85
endFunction · 0.85
emplace_backMethod · 0.80
clearMethod · 0.45
GetHashMethod · 0.45

Tested by

no test coverage detected