Bitcoin ABC 0.33.1
P2P Digital Currency
chainparams.cpp
Go to the documentation of this file.
1// Copyright (c) 2010 Satoshi Nakamoto
2// Copyright (c) 2009-2021 The Bitcoin Core developers
3// Distributed under the MIT software license, see the accompanying
4// file COPYING or http://www.opensource.org/licenses/mit-license.php.
5
7
9#include <chainparamsseeds.h>
10#include <consensus/amount.h>
11#include <consensus/merkle.h>
12#include <primitives/block.h>
14#include <script/script.h>
15#include <uint256.h>
16#include <util/chaintype.h>
17#include <util/strencodings.h>
18
19#include <algorithm>
20#include <cassert>
21#include <cstdint>
22#include <cstring>
23
24static CBlock CreateGenesisBlock(const char *pszTimestamp,
25 const CScript &genesisOutputScript,
26 uint32_t nTime, uint32_t nNonce,
27 uint32_t nBits, int32_t nVersion,
28 const Amount genesisReward) {
30 txNew.nVersion = 1;
31 txNew.vin.resize(1);
32 txNew.vout.resize(1);
33 txNew.vin[0].scriptSig =
34 CScript() << 486604799 << CScriptNum(4)
35 << std::vector<uint8_t>((const uint8_t *)pszTimestamp,
36 (const uint8_t *)pszTimestamp +
37 strlen(pszTimestamp));
38 txNew.vout[0].nValue = genesisReward;
39 txNew.vout[0].scriptPubKey = genesisOutputScript;
40
41 CBlock genesis;
42 genesis.nTime = nTime;
43 genesis.nBits = nBits;
44 genesis.nNonce = nNonce;
45 genesis.nVersion = nVersion;
46 genesis.vtx.push_back(MakeTransactionRef(std::move(txNew)));
47 genesis.hashPrevBlock.SetNull();
48 genesis.hashMerkleRoot = BlockMerkleRoot(genesis);
49 return genesis;
50}
51
65static CBlock CreateGenesisBlock(uint32_t nTime, uint32_t nNonce,
66 uint32_t nBits, int32_t nVersion,
67 const Amount genesisReward) {
68 const char *pszTimestamp =
69 "The Times 03/Jan/2009 Chancellor on brink of second bailout for banks";
70 const CScript genesisOutputScript =
71 CScript() << ParseHex("04678afdb0fe5548271967f1a67130b7105cd6a828e03909"
72 "a67962e0ea1f61deb649f6bc3f4cef38c4f35504e51ec112"
73 "de5c384df7ba0b8d578a4c702b6bf11d5f")
74 << OP_CHECKSIG;
75 return CreateGenesisBlock(pszTimestamp, genesisOutputScript, nTime, nNonce,
76 nBits, nVersion, genesisReward);
77}
78
82class CMainParams : public CChainParams {
83public:
84 explicit CMainParams(const ChainOptions &opts) {
87 // 00000000000000ce80a7e057163a4db1d5ad7b20fb6f598c9597b9665c8fb0d4 -
88 // April 1, 2012
89 consensus.BIP16Height = 173805;
90 consensus.BIP34Height = 227931;
92 "000000000000024b89b42a942fe0d9fea3bb44ab7bd1b19115dd6a759c0808b8");
93 // 000000000000000004c2b624ed5d7756c508d90fd0da2c7c679febfa6c4735f0
94 consensus.BIP65Height = 388381;
95 // 00000000000000000379eaa19dce8c9b722d46ae6a57c2f1a988119488b50931
96 consensus.BIP66Height = 363725;
97 // 000000000000000004a1b34462cb8aeebd5799177f7a29cf28f2d1961716b5b5
98 consensus.CSVHeight = 419328;
100 "00000000ffffffffffffffffffffffffffffffffffffffffffffffffffffffff");
101 // two weeks
102 consensus.nPowTargetTimespan = 14 * 24 * 60 * 60;
106
107 // two days
108 consensus.nDAAHalfLife = 2 * 24 * 60 * 60;
109
110 // The miner fund is enabled by default on mainnet.
112
113 // The staking rewards are enabled by default on mainnet.
115
116 // The best chain should have at least this much work.
119
120 // By default assume that the signatures in ancestors of this block are
121 // valid.
124
125 // August 1, 2017 hard fork
126 consensus.uahfHeight = 478558;
127
128 // November 13, 2017 hard fork
129 consensus.daaHeight = 504031;
130
131 // November 15, 2018 hard fork
133
134 // November 15, 2019 protocol upgrade
135 consensus.gravitonHeight = 609135;
136
137 // May 15, 2020 12:00:00 UTC protocol upgrade
138 consensus.phononHeight = 635258;
139
140 // Nov 15, 2020 12:00:00 UTC protocol upgrade
141 consensus.axionHeight = 661647;
142
143 // May 15, 2023 12:00:00 UTC protocol upgrade
145
146 // Nov 15, 2023 12:00:00 UTC protocol upgrade
148
149 // May 15, 2025 12:00:00 UTC protocol upgrade
151
152 // May 15, 2026 12:00:00 UTC protocol upgrade
154
155 // Nov 15, 2026 12:00:00 UTC protocol upgrade
156 consensus.mengerActivationTime = 1794744000;
157
163 diskMagic[0] = 0xf9;
164 diskMagic[1] = 0xbe;
165 diskMagic[2] = 0xb4;
166 diskMagic[3] = 0xd9;
167 netMagic[0] = 0xe3;
168 netMagic[1] = 0xe1;
169 netMagic[2] = 0xf3;
170 netMagic[3] = 0xe8;
171 nDefaultPort = 8333;
172 nPruneAfterHeight = 100000;
177
178 genesis = CreateGenesisBlock(1231006505, 2083236893, 0x1d00ffff, 1,
179 50 * COIN);
182 uint256S("000000000019d6689c085ae165831e934ff763ae46a2a6c172b3f1"
183 "b60a8ce26f"));
185 uint256S("4a5e1e4baab89f3a32518a88c31bc87f618f76673e2cc77ab2127b"
186 "7afdeda33b"));
187
188 // Note that of those which support the service bits prefix, most only
189 // support a subset of possible options. This is fine at runtime as
190 // we'll fall back to using them as an addrfetch if they don't support
191 // the service bits we want, but we should get them updated to support
192 // all service bits wanted by any release ASAP to avoid it where
193 // possible.
194 // Bitcoin ABC seeder
195 vSeeds.emplace_back("seed.bitcoinabc.org");
196 // Fabien
197 vSeeds.emplace_back("seeder.fabien.cash");
198 // status.cash
199 vSeeds.emplace_back("seeder.status.cash");
200
201 base58Prefixes[PUBKEY_ADDRESS] = std::vector<uint8_t>(1, 0);
202 base58Prefixes[SCRIPT_ADDRESS] = std::vector<uint8_t>(1, 5);
203 base58Prefixes[SECRET_KEY] = std::vector<uint8_t>(1, 128);
204 base58Prefixes[EXT_PUBLIC_KEY] = {0x04, 0x88, 0xB2, 0x1E};
205 base58Prefixes[EXT_SECRET_KEY] = {0x04, 0x88, 0xAD, 0xE4};
206 cashaddrPrefix = opts.ecash ? "ecash" : "bitcoincash";
207
208 vFixedSeeds = std::vector<SeedSpec6>(std::begin(pnSeed6_main),
209 std::end(pnSeed6_main));
210
212 fRequireStandard = true;
213 m_is_test_chain = false;
214 m_is_mockable_chain = false;
215
217
219 // v0.31.5
220 {.height = 896'800,
221 .hash_serialized =
222 AssumeutxoHash{uint256S("0x2f783c045f353b4a900139f8a66c7bcbb62"
223 "c93a4f298472d77dad9bfb0186665")},
224 .nChainTx = 299'407'257,
225 .blockhash =
226 BlockHash{uint256S("0x0000000000000000297efb200794348b44bff4bf"
227 "b31716cf64dc45bac0a251ea")}},
228 // v0.32.0
229 {.height = 916'000,
230 .hash_serialized =
231 AssumeutxoHash{uint256S("0x20f077a8fcc08bb9cb3753df845c9a4257c"
232 "e500684dfa5a95d1061701c4fa35d")},
233 .nChainTx = 299'856'530,
234 .blockhash =
235 BlockHash{uint256S("0x00000000000000003fc542691c35873ba4ba7a44"
236 "05ce612a62f121988fb8a46d")}},
237 };
238
239 // Data as of block
240 // 000000000000000001d2ce557406b017a928be25ee98906397d339c3f68eec5d
241 // (height 523992).
243 // UNIX timestamp of last known number of transactions.
244 1522608016,
245 // Total number of transactions between genesis and that timestamp
246 // (the tx=... number in the ChainStateFlushed debug.log lines)
247 248589038,
248 // Estimated number of transactions per second after that timestamp.
249 3.2,
250 };
251 }
252};
253
258public:
259 explicit CTestNetParams(const ChainOptions &opts) {
262 // 00000000040b4e986385315e14bee30ad876d8b47f748025b26683116d21aa65
264 consensus.BIP34Height = 21111;
266 "0000000023b3a96d3484e5abb3755c413e7d41500f8e2a5c3f0dd01299cd8ef8");
267 // 00000000007f6655f22f98e72ed80d8b06dc761d5da09df0fa1dc4be4f861eb6
268 consensus.BIP65Height = 581885;
269 // 000000002104c8c45e99a8853285a3b592602a3ccde2b832481da85e9e4ba182
270 consensus.BIP66Height = 330776;
271 // 00000000025e930139bac5c6c31a403776da130831ab85be56578f3fa75369bb
272 consensus.CSVHeight = 770112;
274 "00000000ffffffffffffffffffffffffffffffffffffffffffffffffffffffff");
275 // two weeks
276 consensus.nPowTargetTimespan = 14 * 24 * 60 * 60;
280
281 // two days
282 consensus.nDAAHalfLife = 2 * 24 * 60 * 60;
283
284 // The miner fund is disabled by default on testnet.
286
287 // The staking rewards are disabled by default on testnet.
289
290 // The best chain should have at least this much work.
293
294 // By default assume that the signatures in ancestors of this block are
295 // valid.
298
299 // August 1, 2017 hard fork
300 consensus.uahfHeight = 1155875;
301
302 // November 13, 2017 hard fork
303 consensus.daaHeight = 1188697;
304
305 // November 15, 2018 hard fork
307
308 // November 15, 2019 protocol upgrade
309 consensus.gravitonHeight = 1341711;
310
311 // May 15, 2020 12:00:00 UTC protocol upgrade
312 consensus.phononHeight = 1378460;
313
314 // Nov 15, 2020 12:00:00 UTC protocol upgrade
315 consensus.axionHeight = 1421481;
316
317 // May 15, 2023 12:00:00 UTC protocol upgrade
318 consensus.wellingtonHeight = 1556117;
319
320 // Nov 15, 2023 12:00:00 UTC protocol upgrade
322
323 // May 15, 2025 12:00:00 UTC protocol upgrade
325
326 // May 15, 2026 12:00:00 UTC protocol upgrade
328
329 // Nov 15, 2026 12:00:00 UTC protocol upgrade
330 consensus.mengerActivationTime = 1794744000;
331
332 diskMagic[0] = 0x0b;
333 diskMagic[1] = 0x11;
334 diskMagic[2] = 0x09;
335 diskMagic[3] = 0x07;
336 netMagic[0] = 0xf4;
337 netMagic[1] = 0xe5;
338 netMagic[2] = 0xf3;
339 netMagic[3] = 0xf4;
340 nDefaultPort = 18333;
341 nPruneAfterHeight = 1000;
346
347 genesis =
348 CreateGenesisBlock(1296688602, 414098458, 0x1d00ffff, 1, 50 * COIN);
351 uint256S("000000000933ea01ad0ee984209779baaec3ced90fa3f408719526"
352 "f8d77f4943"));
354 uint256S("4a5e1e4baab89f3a32518a88c31bc87f618f76673e2cc77ab2127b"
355 "7afdeda33b"));
356
357 vFixedSeeds.clear();
358 vSeeds.clear();
359 // nodes with support for servicebits filtering should be at the top
360 // Bitcoin ABC seeder
361 vSeeds.emplace_back("testnet-seed.bitcoinabc.org");
362 // Fabien
363 vSeeds.emplace_back("testnet-seeder.fabien.cash");
364 // status.cash
365 vSeeds.emplace_back("testnet-seeder.status.cash");
366
367 base58Prefixes[PUBKEY_ADDRESS] = std::vector<uint8_t>(1, 111);
368 base58Prefixes[SCRIPT_ADDRESS] = std::vector<uint8_t>(1, 196);
369 base58Prefixes[SECRET_KEY] = std::vector<uint8_t>(1, 239);
370 base58Prefixes[EXT_PUBLIC_KEY] = {0x04, 0x35, 0x87, 0xCF};
371 base58Prefixes[EXT_SECRET_KEY] = {0x04, 0x35, 0x83, 0x94};
372 cashaddrPrefix = opts.ecash ? "ectest" : "bchtest";
373
374 vFixedSeeds = std::vector<SeedSpec6>(std::begin(pnSeed6_test),
375 std::end(pnSeed6_test));
376
378 fRequireStandard = false;
379 m_is_test_chain = true;
380 m_is_mockable_chain = false;
381
383
385 // v0.31.5
386 {.height = 1'661'000,
387 .hash_serialized =
388 AssumeutxoHash{uint256S("0xc7a2aa5dfdbafa2d6a6613d254d25a2ab9d"
389 "893c01099d241f1e7a3785cb5f50f")},
390 .nChainTx = 63'977'749,
391 .blockhash =
392 BlockHash{uint256S("0x000000000000c7d18ee9b71a1ab4d8d21aa9d758"
393 "7bf260e93df029ccb392d403")}},
394 // v0.32.0
395 {.height = 1'680'000,
396 .hash_serialized =
397 AssumeutxoHash{uint256S("0x53026f5c5f3bfdbfb3acda49d5531dfcbbb"
398 "544cfa0e15e3fcecc22d681aa9986")},
399 .nChainTx = 63'999'716,
400 .blockhash =
401 BlockHash{uint256S("0x000000000003c4467ce74a73c902e80b5924cfdf"
402 "2695bea8991963f26ac6f4b1")}},
403 };
404
405 // Data as of block
406 // 000000000005b07ecf85563034d13efd81c1a29e47e22b20f4fc6919d5b09cd6
407 // (height 1223263)
408 chainTxData = ChainTxData{1522608381, 15052068, 0.15};
409 }
410};
411
416public:
417 explicit CRegTestParams(const ChainOptions &opts) {
420 // always enforce P2SH BIP16 on regtest
422 // BIP34 activated on regtest (Used in functional tests)
425 // BIP65 activated on regtest (Used in functional tests)
426 consensus.BIP65Height = 1351;
427 // BIP66 activated on regtest (Used in functional tests)
428 consensus.BIP66Height = 1251;
429 // CSV activated on regtest (Used in functional tests)
430 consensus.CSVHeight = 576;
432 "7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");
433 // two weeks
434 consensus.nPowTargetTimespan = 14 * 24 * 60 * 60;
438
439 // two days
440 consensus.nDAAHalfLife = 2 * 24 * 60 * 60;
441
442 // The miner fund is disabled by default on regtest.
444
445 // The staking rewards are disabled by default on regtest.
447
448 // The best chain should have at least this much work.
450
451 // By default assume that the signatures in ancestors of this block are
452 // valid.
454
455 // UAHF is always enabled on regtest.
457
458 // November 13, 2017 hard fork is always on on regtest.
460
461 // November 15, 2018 hard fork is always on on regtest.
463
464 // November 15, 2019 protocol upgrade
466
467 // May 15, 2020 12:00:00 UTC protocol upgrade
469
470 // Nov 15, 2020 12:00:00 UTC protocol upgrade
472
473 // May 15, 2023 12:00:00 UTC protocol upgrade
475
476 // Nov 15, 2023 12:00:00 UTC protocol upgrade
478
479 // May 15, 2025 12:00:00 UTC protocol upgrade
481
482 // May 15, 2026 12:00:00 UTC protocol upgrade
484
485 // Nov 15, 2026 12:00:00 UTC protocol upgrade
486 consensus.mengerActivationTime = 1794744000;
487
488 diskMagic[0] = 0xfa;
489 diskMagic[1] = 0xbf;
490 diskMagic[2] = 0xb5;
491 diskMagic[3] = 0xda;
492 netMagic[0] = 0xda;
493 netMagic[1] = 0xb5;
494 netMagic[2] = 0xbf;
495 netMagic[3] = 0xfa;
496 nDefaultPort = 18444;
497 nPruneAfterHeight = opts.fastprune ? 100 : 1000;
500
501 genesis = CreateGenesisBlock(1296688602, 2, 0x207fffff, 1, 50 * COIN);
504 uint256S("0x0f9188f13cb7b2c71f2a335e3a4fc328bf5beb436012afca590b"
505 "1a11466e2206"));
507 uint256S("0x4a5e1e4baab89f3a32518a88c31bc87f618f76673e2cc77ab212"
508 "7b7afdeda33b"));
509
511 vFixedSeeds.clear();
513 vSeeds.clear();
514
516 fRequireStandard = true;
517 m_is_test_chain = true;
518 m_is_mockable_chain = true;
519
521
523 {.height = 110,
524 .hash_serialized =
525 AssumeutxoHash{uint256S("0xd754ca97ef24c5132f8d2147c19310b7a6b"
526 "d136766430304735a73372fe36213")},
527 .nChainTx = 111,
528 .blockhash =
529 BlockHash{uint256S("0x47cfb2b77860d250060e78d3248bb05092876545"
530 "3cbcbdbc121e3c48b99a376c")}},
531 {// For use by test/functional/feature_assumeutxo.py
532 .height = 299,
533 .hash_serialized =
534 AssumeutxoHash{uint256S("0xa966794ed5a2f9debaefc7ca48dbc5d5e12"
535 "a89ff9fe45bd00ec5732d074580a9")},
536 .nChainTx = 334,
537 .blockhash =
538 BlockHash{uint256S("0x118a7d5473bccce9b314789e14ce426fc65fb09d"
539 "feda0131032bb6d86ed2fd0b")}},
540 };
541
542 chainTxData = ChainTxData{0, 0, 0};
543
544 base58Prefixes[PUBKEY_ADDRESS] = std::vector<uint8_t>(1, 111);
545 base58Prefixes[SCRIPT_ADDRESS] = std::vector<uint8_t>(1, 196);
546 base58Prefixes[SECRET_KEY] = std::vector<uint8_t>(1, 239);
547 base58Prefixes[EXT_PUBLIC_KEY] = {0x04, 0x35, 0x87, 0xCF};
548 base58Prefixes[EXT_SECRET_KEY] = {0x04, 0x35, 0x83, 0x94};
549 cashaddrPrefix = opts.ecash ? "ecregtest" : "bchreg";
550 }
551};
552
553std::unique_ptr<const CChainParams>
555 return std::make_unique<const CRegTestParams>(options);
556}
557
558std::unique_ptr<const CChainParams>
560 return std::make_unique<const CMainParams>(options);
561}
562
563std::unique_ptr<const CChainParams>
565 return std::make_unique<const CTestNetParams>(options);
566}
567
569 std::vector<int> heights;
570 heights.reserve(m_assumeutxo_data.size());
571
572 for (const auto &data : m_assumeutxo_data) {
573 heights.emplace_back(data.height);
574 }
575 return heights;
576}
577
578std::optional<ChainType>
581 const auto mainnet_msg = CChainParams::Main(opts)->DiskMagic();
582 const auto testnet_msg = CChainParams::TestNet(opts)->DiskMagic();
583 const auto regtest_msg = CChainParams::RegTest(opts)->DiskMagic();
584
585 if (std::equal(message.begin(), message.end(), mainnet_msg.data())) {
586 return ChainType::MAIN;
587 } else if (std::equal(message.begin(), message.end(), testnet_msg.data())) {
588 return ChainType::TESTNET;
589 } else if (std::equal(message.begin(), message.end(), regtest_msg.data())) {
590 return ChainType::REGTEST;
591 }
592 return std::nullopt;
593}
static constexpr Amount COIN
Definition: amount.h:149
static SeedSpec6 pnSeed6_main[]
List of fixed seed nodes for the bitcoin network @generated by contrib/seeds/generate-seeds....
static SeedSpec6 pnSeed6_test[]
BlockHash GetHash() const
Definition: block.cpp:11
uint32_t nNonce
Definition: block.h:31
uint32_t nBits
Definition: block.h:30
uint32_t nTime
Definition: block.h:29
BlockHash hashPrevBlock
Definition: block.h:27
int32_t nVersion
Definition: block.h:26
uint256 hashMerkleRoot
Definition: block.h:28
Definition: block.h:60
std::vector< CTransactionRef > vtx
Definition: block.h:63
CChainParams defines various tweakable parameters of a given instance of the Bitcoin system.
Definition: chainparams.h:86
uint64_t m_assumed_chain_state_size
Definition: chainparams.h:181
std::vector< int > GetAvailableSnapshotHeights() const
bool m_is_test_chain
Definition: chainparams.h:190
CBlock genesis
Definition: chainparams.h:186
uint64_t m_assumed_blockchain_size
Definition: chainparams.h:180
CMessageHeader::MessageMagic netMagic
Definition: chainparams.h:177
std::vector< uint8_t > base58Prefixes[MAX_BASE58_TYPES]
Definition: chainparams.h:183
bool fDefaultConsistencyChecks
Definition: chainparams.h:188
std::vector< SeedSpec6 > vFixedSeeds
Definition: chainparams.h:187
Consensus::Params consensus
Definition: chainparams.h:175
static std::unique_ptr< const CChainParams > TestNet(const ChainOptions &options)
static std::unique_ptr< const CChainParams > RegTest(const ChainOptions &options)
std::vector< AssumeutxoData > m_assumeutxo_data
Definition: chainparams.h:193
bool fRequireStandard
Definition: chainparams.h:189
std::string cashaddrPrefix
Definition: chainparams.h:184
std::vector< std::string > vSeeds
Definition: chainparams.h:182
bool m_is_mockable_chain
Definition: chainparams.h:191
CMessageHeader::MessageMagic diskMagic
Definition: chainparams.h:176
static std::unique_ptr< const CChainParams > Main(const ChainOptions &options)
ChainType m_chain_type
Definition: chainparams.h:185
CCheckpointData checkpointData
Definition: chainparams.h:192
uint16_t nDefaultPort
Definition: chainparams.h:178
uint64_t nPruneAfterHeight
Definition: chainparams.h:179
ChainTxData chainTxData
Definition: chainparams.h:194
Main network.
Definition: chainparams.cpp:82
CMainParams(const ChainOptions &opts)
Definition: chainparams.cpp:84
std::array< uint8_t, MESSAGE_START_SIZE > MessageMagic
Definition: protocol.h:47
A mutable version of CTransaction.
Definition: transaction.h:274
std::vector< CTxOut > vout
Definition: transaction.h:277
std::vector< CTxIn > vin
Definition: transaction.h:276
Regression test.
CRegTestParams(const ChainOptions &opts)
Testnet (v3)
CTestNetParams(const ChainOptions &opts)
void SetNull()
Definition: uint256.h:41
std::optional< ChainType > GetNetworkForMagic(CMessageHeader::MessageMagic &message)
static CBlock CreateGenesisBlock(const char *pszTimestamp, const CScript &genesisOutputScript, uint32_t nTime, uint32_t nNonce, uint32_t nBits, int32_t nVersion, const Amount genesisReward)
Definition: chainparams.cpp:24
const CCheckpointData & CheckpointData(const ChainType chain)
uint256 BlockMerkleRoot(const CBlock &block, bool *mutated)
Compute the Merkle root of the transactions in a block.
Definition: merkle.cpp:69
const uint64_t MAINNET_ASSUMED_CHAINSTATE_SIZE
const uint64_t TESTNET_ASSUMED_CHAINSTATE_SIZE
const uint64_t MAINNET_ASSUMED_BLOCKCHAIN_SIZE
const uint64_t TESTNET_ASSUMED_BLOCKCHAIN_SIZE
const BlockHash MAINNET_DEFAULT_ASSUME_VALID
const uint256 TESTNET_MINIMUM_CHAIN_WORK
const uint256 MAINNET_MINIMUM_CHAIN_WORK
const BlockHash TESTNET_DEFAULT_ASSUME_VALID
static CTransactionRef MakeTransactionRef()
Definition: transaction.h:316
@ OP_CHECKSIG
Definition: script.h:167
Definition: amount.h:21
A BlockHash is a unqiue identifier for a block.
Definition: blockhash.h:13
static BlockHash fromHex(const std::string &str)
Definition: blockhash.h:17
Holds various statistics on transactions within a chain.
Definition: chainparams.h:73
BlockHash defaultAssumeValid
Definition: params.h:94
int magneticAnomalyHeight
Block height at which the magnetic anomaly activation becomes active.
Definition: params.h:53
int BIP65Height
Block height at which BIP65 becomes active.
Definition: params.h:43
bool enableStakingRewards
Enable or disable the staking rewards by default.
Definition: params.h:78
int CSVHeight
Block height at which CSV (BIP68, BIP112 and BIP113) becomes active.
Definition: params.h:47
int gravitonHeight
Block height at which the graviton activation becomes active.
Definition: params.h:55
int axionHeight
Block height at which the axion activation becomes active.
Definition: params.h:59
BlockHash BIP34Hash
Definition: params.h:41
int BIP16Height
Block height at which BIP16 becomes active.
Definition: params.h:38
int wellingtonHeight
Block height at which the wellington activation becomes active.
Definition: params.h:61
int phononHeight
Block height at which the phonon activation becomes active.
Definition: params.h:57
int64_t nDAAHalfLife
Definition: params.h:84
int BIP34Height
Block height and hash at which BIP34 becomes active.
Definition: params.h:40
int nSubsidyHalvingInterval
Definition: params.h:36
bool fPowNoRetargeting
Definition: params.h:83
uint256 nMinimumChainWork
Definition: params.h:93
int daaHeight
Block height at which the new DAA becomes active.
Definition: params.h:51
int64_t nPowTargetTimespan
Definition: params.h:86
int obolenskyActivationTime
Unix time used for MTP activation of 15 May 2026 12:00:00 UTC upgrade.
Definition: params.h:67
BlockHash hashGenesisBlock
Definition: params.h:35
int BIP66Height
Block height at which BIP66 becomes active.
Definition: params.h:45
uint256 powLimit
Proof of work parameters.
Definition: params.h:81
int schumpeterActivationTime
Unix time used for MTP activation of 15 May 2025 12:00:00 UTC upgrade.
Definition: params.h:65
int uahfHeight
Block height at which UAHF kicks in.
Definition: params.h:49
bool enableMinerFund
Enable or disable the miner fund by default.
Definition: params.h:75
int cowperthwaiteHeight
Block height at which the Cowperthwaite activation becomes active.
Definition: params.h:63
int64_t nPowTargetSpacing
Definition: params.h:85
int mengerActivationTime
Unix time used for MTP activation of 15 November 2026 12:00:00 UTC upgrade.
Definition: params.h:72
bool fPowAllowMinDifficultyBlocks
Definition: params.h:82
uint256 uint256S(const char *str)
uint256 from const char *.
Definition: uint256.h:143
template std::vector< std::byte > ParseHex(std::string_view)
assert(!tx.IsCoinBase())