Bitcoin ABC  0.26.3
P2P Digital Currency
chainparams.cpp
Go to the documentation of this file.
1 // Copyright (c) 2010 Satoshi Nakamoto
2 // Copyright (c) 2009-2016 The Bitcoin Core developers
3 // Copyright (c) 2017-2020 The Bitcoin developers
4 // Distributed under the MIT software license, see the accompanying
5 // file COPYING or http://www.opensource.org/licenses/mit-license.php.
6 
7 #include <chainparams.h>
8 
9 #include <chainparamsconstants.h>
10 #include <chainparamsseeds.h>
11 #include <consensus/merkle.h>
12 #include <currencyunit.h>
13 #include <tinyformat.h>
14 #include <util/system.h>
15 
16 #include <cassert>
17 
18 static CBlock CreateGenesisBlock(const char *pszTimestamp,
19  const CScript &genesisOutputScript,
20  uint32_t nTime, uint32_t nNonce,
21  uint32_t nBits, int32_t nVersion,
22  const Amount genesisReward) {
23  CMutableTransaction txNew;
24  txNew.nVersion = 1;
25  txNew.vin.resize(1);
26  txNew.vout.resize(1);
27  txNew.vin[0].scriptSig =
28  CScript() << 486604799 << CScriptNum(4)
29  << std::vector<uint8_t>((const uint8_t *)pszTimestamp,
30  (const uint8_t *)pszTimestamp +
31  strlen(pszTimestamp));
32  txNew.vout[0].nValue = genesisReward;
33  txNew.vout[0].scriptPubKey = genesisOutputScript;
34 
35  CBlock genesis;
36  genesis.nTime = nTime;
37  genesis.nBits = nBits;
38  genesis.nNonce = nNonce;
39  genesis.nVersion = nVersion;
40  genesis.vtx.push_back(MakeTransactionRef(std::move(txNew)));
41  genesis.hashPrevBlock.SetNull();
42  genesis.hashMerkleRoot = BlockMerkleRoot(genesis);
43  return genesis;
44 }
45 
59 CBlock CreateGenesisBlock(uint32_t nTime, uint32_t nNonce, uint32_t nBits,
60  int32_t nVersion, const Amount genesisReward) {
61  const char *pszTimestamp =
62  "The Times 03/Jan/2009 Chancellor on brink of second bailout for banks";
63  const CScript genesisOutputScript =
64  CScript() << ParseHex("04678afdb0fe5548271967f1a67130b7105cd6a828e03909"
65  "a67962e0ea1f61deb649f6bc3f4cef38c4f35504e51ec112"
66  "de5c384df7ba0b8d578a4c702b6bf11d5f")
67  << OP_CHECKSIG;
68  return CreateGenesisBlock(pszTimestamp, genesisOutputScript, nTime, nNonce,
69  nBits, nVersion, genesisReward);
70 }
71 
75 class CMainParams : public CChainParams {
76 public:
80  // 00000000000000ce80a7e057163a4db1d5ad7b20fb6f598c9597b9665c8fb0d4 -
81  // April 1, 2012
82  consensus.BIP16Height = 173805;
83  consensus.BIP34Height = 227931;
85  "000000000000024b89b42a942fe0d9fea3bb44ab7bd1b19115dd6a759c0808b8");
86  // 000000000000000004c2b624ed5d7756c508d90fd0da2c7c679febfa6c4735f0
87  consensus.BIP65Height = 388381;
88  // 00000000000000000379eaa19dce8c9b722d46ae6a57c2f1a988119488b50931
89  consensus.BIP66Height = 363725;
90  // 000000000000000004a1b34462cb8aeebd5799177f7a29cf28f2d1961716b5b5
91  consensus.CSVHeight = 419328;
93  "00000000ffffffffffffffffffffffffffffffffffffffffffffffffffffffff");
94  // two weeks
95  consensus.nPowTargetTimespan = 14 * 24 * 60 * 60;
96  consensus.nPowTargetSpacing = 10 * 60;
99 
100  // two days
101  consensus.nDAAHalfLife = 2 * 24 * 60 * 60;
102 
103  // nPowTargetTimespan / nPowTargetSpacing
106  .bit = 28,
107  // 95% of 2016
108  .nActivationThreshold = 1916,
109  // January 1, 2008
110  .nStartTime = 1199145601,
111  // December 31, 2008
112  .nTimeout = 1230767999,
113  };
114 
115  // The miner fund is enabled by default on mainnet.
116  consensus.enableMinerFund = true;
117 
118  // The best chain should have at least this much work.
121 
122  // By default assume that the signatures in ancestors of this block are
123  // valid.
126 
127  // August 1, 2017 hard fork
128  consensus.uahfHeight = 478558;
129 
130  // November 13, 2017 hard fork
131  consensus.daaHeight = 504031;
132 
133  // November 15, 2018 hard fork
135 
136  // November 15, 2019 protocol upgrade
137  consensus.gravitonHeight = 609135;
138 
139  // May 15, 2020 12:00:00 UTC protocol upgrade
140  consensus.phononHeight = 635258;
141 
142  // Nov 15, 2020 12:00:00 UTC protocol upgrade
143  consensus.axionHeight = 661647;
144 
145  // May 15, 2022 12:00:00 UTC protocol upgrade
146  consensus.gluonHeight = 739535;
147 
148  // Nov 15, 2022 12:00:00 UTC protocol upgrade
149  consensus.jeffersonActivationTime = 1668513600;
150 
151  // May 15, 2023 12:00:00 UTC protocol upgrade
152  consensus.wellingtonActivationTime = 1684152000;
153 
159  diskMagic[0] = 0xf9;
160  diskMagic[1] = 0xbe;
161  diskMagic[2] = 0xb4;
162  diskMagic[3] = 0xd9;
163  netMagic[0] = 0xe3;
164  netMagic[1] = 0xe1;
165  netMagic[2] = 0xf3;
166  netMagic[3] = 0xe8;
167  nDefaultPort = 8333;
168  nPruneAfterHeight = 100000;
173 
174  genesis = CreateGenesisBlock(1231006505, 2083236893, 0x1d00ffff, 1,
175  50 * COIN);
178  uint256S("000000000019d6689c085ae165831e934ff763ae46a2a6c172b3f1"
179  "b60a8ce26f"));
181  uint256S("4a5e1e4baab89f3a32518a88c31bc87f618f76673e2cc77ab2127b"
182  "7afdeda33b"));
183 
184  // Note that of those which support the service bits prefix, most only
185  // support a subset of possible options. This is fine at runtime as
186  // we'll fall back to using them as an addrfetch if they don't support
187  // the service bits we want, but we should get them updated to support
188  // all service bits wanted by any release ASAP to avoid it where
189  // possible.
190  // Bitcoin ABC seeder
191  vSeeds.emplace_back("seed.bitcoinabc.org");
192  // Amaury SÉCHET
193  vSeeds.emplace_back("seed.deadalnix.me");
194  // Fabien
195  vSeeds.emplace_back("seeder.fabien.cash");
196  vSeeds.emplace_back("seeder2.fabien.cash");
197  // status.cash
198  vSeeds.emplace_back("seeder.status.cash");
199 
200  base58Prefixes[PUBKEY_ADDRESS] = std::vector<uint8_t>(1, 0);
201  base58Prefixes[SCRIPT_ADDRESS] = std::vector<uint8_t>(1, 5);
202  base58Prefixes[SECRET_KEY] = std::vector<uint8_t>(1, 128);
203  base58Prefixes[EXT_PUBLIC_KEY] = {0x04, 0x88, 0xB2, 0x1E};
204  base58Prefixes[EXT_SECRET_KEY] = {0x04, 0x88, 0xAD, 0xE4};
206  gArgs.GetBoolArg("-ecash", DEFAULT_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  // TODO to be specified in a future patch.
220  };
221 
222  // Data as of block
223  // 000000000000000001d2ce557406b017a928be25ee98906397d339c3f68eec5d
224  // (height 523992).
226  // UNIX timestamp of last known number of transactions.
227  1522608016,
228  // Total number of transactions between genesis and that timestamp
229  // (the tx=... number in the ChainStateFlushed debug.log lines)
230  248589038,
231  // Estimated number of transactions per second after that timestamp.
232  3.2,
233  };
234  }
235 };
236 
240 class CTestNetParams : public CChainParams {
241 public:
245  // 00000000040b4e986385315e14bee30ad876d8b47f748025b26683116d21aa65
246  consensus.BIP16Height = 514;
247  consensus.BIP34Height = 21111;
249  "0000000023b3a96d3484e5abb3755c413e7d41500f8e2a5c3f0dd01299cd8ef8");
250  // 00000000007f6655f22f98e72ed80d8b06dc761d5da09df0fa1dc4be4f861eb6
251  consensus.BIP65Height = 581885;
252  // 000000002104c8c45e99a8853285a3b592602a3ccde2b832481da85e9e4ba182
253  consensus.BIP66Height = 330776;
254  // 00000000025e930139bac5c6c31a403776da130831ab85be56578f3fa75369bb
255  consensus.CSVHeight = 770112;
257  "00000000ffffffffffffffffffffffffffffffffffffffffffffffffffffffff");
258  // two weeks
259  consensus.nPowTargetTimespan = 14 * 24 * 60 * 60;
260  consensus.nPowTargetSpacing = 10 * 60;
263 
264  // two days
265  consensus.nDAAHalfLife = 2 * 24 * 60 * 60;
266 
267  // nPowTargetTimespan / nPowTargetSpacing
270  .bit = 28,
271  // 75% of 2016
272  .nActivationThreshold = 1512,
273  // January 1, 2008
274  .nStartTime = 1199145601,
275  // December 31, 2008
276  .nTimeout = 1230767999,
277  };
278 
279  // The miner fund is disabled by default on testnet.
280  consensus.enableMinerFund = false;
281 
282  // The best chain should have at least this much work.
285 
286  // By default assume that the signatures in ancestors of this block are
287  // valid.
290 
291  // August 1, 2017 hard fork
292  consensus.uahfHeight = 1155875;
293 
294  // November 13, 2017 hard fork
295  consensus.daaHeight = 1188697;
296 
297  // November 15, 2018 hard fork
299 
300  // November 15, 2019 protocol upgrade
301  consensus.gravitonHeight = 1341711;
302 
303  // May 15, 2020 12:00:00 UTC protocol upgrade
304  consensus.phononHeight = 1378460;
305 
306  // Nov 15, 2020 12:00:00 UTC protocol upgrade
307  consensus.axionHeight = 1421481;
308 
309  // May 15, 2022 12:00:00 UTC protocol upgrade
310  consensus.gluonHeight = 1503556;
311 
312  // Nov 15, 2022 12:00:00 UTC protocol upgrade
313  consensus.jeffersonActivationTime = 1668513600;
314 
315  // May 15, 2023 12:00:00 UTC protocol upgrade
316  consensus.wellingtonActivationTime = 1684152000;
317 
318  diskMagic[0] = 0x0b;
319  diskMagic[1] = 0x11;
320  diskMagic[2] = 0x09;
321  diskMagic[3] = 0x07;
322  netMagic[0] = 0xf4;
323  netMagic[1] = 0xe5;
324  netMagic[2] = 0xf3;
325  netMagic[3] = 0xf4;
326  nDefaultPort = 18333;
327  nPruneAfterHeight = 1000;
332 
333  genesis =
334  CreateGenesisBlock(1296688602, 414098458, 0x1d00ffff, 1, 50 * COIN);
337  uint256S("000000000933ea01ad0ee984209779baaec3ced90fa3f408719526"
338  "f8d77f4943"));
340  uint256S("4a5e1e4baab89f3a32518a88c31bc87f618f76673e2cc77ab2127b"
341  "7afdeda33b"));
342 
343  vFixedSeeds.clear();
344  vSeeds.clear();
345  // nodes with support for servicebits filtering should be at the top
346  // Bitcoin ABC seeder
347  vSeeds.emplace_back("testnet-seed.bitcoinabc.org");
348  // Amaury SÉCHET
349  vSeeds.emplace_back("testnet-seed.deadalnix.me");
350  // Fabien
351  vSeeds.emplace_back("testnet-seeder.fabien.cash");
352  // status.cash
353  vSeeds.emplace_back("testnet-seeder.status.cash");
354 
355  base58Prefixes[PUBKEY_ADDRESS] = std::vector<uint8_t>(1, 111);
356  base58Prefixes[SCRIPT_ADDRESS] = std::vector<uint8_t>(1, 196);
357  base58Prefixes[SECRET_KEY] = std::vector<uint8_t>(1, 239);
358  base58Prefixes[EXT_PUBLIC_KEY] = {0x04, 0x35, 0x87, 0xCF};
359  base58Prefixes[EXT_SECRET_KEY] = {0x04, 0x35, 0x83, 0x94};
361  gArgs.GetBoolArg("-ecash", DEFAULT_ECASH) ? "ectest" : "bchtest";
362 
363  vFixedSeeds = std::vector<SeedSpec6>(std::begin(pnSeed6_test),
364  std::end(pnSeed6_test));
365 
367  fRequireStandard = false;
368  m_is_test_chain = true;
369  m_is_mockable_chain = false;
370 
372 
374  // TODO to be specified in a future patch.
375  };
376 
377  // Data as of block
378  // 000000000005b07ecf85563034d13efd81c1a29e47e22b20f4fc6919d5b09cd6
379  // (height 1223263)
380  chainTxData = ChainTxData{1522608381, 15052068, 0.15};
381  }
382 };
383 
387 class CRegTestParams : public CChainParams {
388 public:
392  // always enforce P2SH BIP16 on regtest
394  // BIP34 activated on regtest (Used in functional tests)
395  consensus.BIP34Height = 500;
397  // BIP65 activated on regtest (Used in functional tests)
398  consensus.BIP65Height = 1351;
399  // BIP66 activated on regtest (Used in functional tests)
400  consensus.BIP66Height = 1251;
401  // CSV activated on regtest (Used in functional tests)
402  consensus.CSVHeight = 576;
404  "7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");
405  // two weeks
406  consensus.nPowTargetTimespan = 14 * 24 * 60 * 60;
407  consensus.nPowTargetSpacing = 10 * 60;
410 
411  // two days
412  consensus.nDAAHalfLife = 2 * 24 * 60 * 60;
413 
414  // Faster than normal for regtest (144 instead of 2016)
417  .bit = 28,
418  // 75% of 144
419  .nActivationThreshold = 108,
420  };
421 
422  // The miner fund is disabled by default on regnet.
423  consensus.enableMinerFund = false;
424 
425  // The best chain should have at least this much work.
427 
428  // By default assume that the signatures in ancestors of this block are
429  // valid.
431 
432  // UAHF is always enabled on regtest.
433  consensus.uahfHeight = 0;
434 
435  // November 13, 2017 hard fork is always on on regtest.
436  consensus.daaHeight = 0;
437 
438  // November 15, 2018 hard fork is always on on regtest.
440 
441  // November 15, 2019 protocol upgrade
443 
444  // May 15, 2020 12:00:00 UTC protocol upgrade
446 
447  // Nov 15, 2020 12:00:00 UTC protocol upgrade
449 
450  // May 15, 2022 12:00:00 UTC protocol upgrade
452 
453  // Nov 15, 2022 12:00:00 UTC protocol upgrade
454  consensus.jeffersonActivationTime = 1668513600;
455 
456  // May 15, 2023 12:00:00 UTC protocol upgrade
457  consensus.wellingtonActivationTime = 1684152000;
458 
459  diskMagic[0] = 0xfa;
460  diskMagic[1] = 0xbf;
461  diskMagic[2] = 0xb5;
462  diskMagic[3] = 0xda;
463  netMagic[0] = 0xda;
464  netMagic[1] = 0xb5;
465  netMagic[2] = 0xbf;
466  netMagic[3] = 0xfa;
467  nDefaultPort = 18444;
468  nPruneAfterHeight = gArgs.GetBoolArg("-fastprune", false) ? 100 : 1000;
471 
472  genesis = CreateGenesisBlock(1296688602, 2, 0x207fffff, 1, 50 * COIN);
475  uint256S("0x0f9188f13cb7b2c71f2a335e3a4fc328bf5beb436012afca590b"
476  "1a11466e2206"));
478  uint256S("0x4a5e1e4baab89f3a32518a88c31bc87f618f76673e2cc77ab212"
479  "7b7afdeda33b"));
480 
482  vFixedSeeds.clear();
484  vSeeds.clear();
485 
487  fRequireStandard = true;
488  m_is_test_chain = true;
489  m_is_mockable_chain = true;
490 
492 
494  {
495  110,
496  {AssumeutxoHash{uint256S("0xff755939f6fd81bf966e2f347f5d3660d62"
497  "39334050eb557a6f005d7d8184ea9")},
498  110},
499  },
500  {
501  210,
502  {AssumeutxoHash{uint256S("0xd6089fa8d2100926326cacdd452231e30bb"
503  "4e64f07aa5bfec96e055ac2a9a87a")},
504  210},
505  },
506  };
507 
508  chainTxData = ChainTxData{0, 0, 0};
509 
510  base58Prefixes[PUBKEY_ADDRESS] = std::vector<uint8_t>(1, 111);
511  base58Prefixes[SCRIPT_ADDRESS] = std::vector<uint8_t>(1, 196);
512  base58Prefixes[SECRET_KEY] = std::vector<uint8_t>(1, 239);
513  base58Prefixes[EXT_PUBLIC_KEY] = {0x04, 0x35, 0x87, 0xCF};
514  base58Prefixes[EXT_SECRET_KEY] = {0x04, 0x35, 0x83, 0x94};
516  gArgs.GetBoolArg("-ecash", DEFAULT_ECASH) ? "ecregtest" : "bchreg";
517  }
518 };
519 
520 static std::unique_ptr<CChainParams> globalChainParams;
521 
524  return *globalChainParams;
525 }
526 
527 std::unique_ptr<CChainParams> CreateChainParams(const std::string &chain) {
528  if (chain == CBaseChainParams::MAIN) {
529  return std::make_unique<CMainParams>();
530  }
531 
532  if (chain == CBaseChainParams::TESTNET) {
533  return std::make_unique<CTestNetParams>();
534  }
535 
536  if (chain == CBaseChainParams::REGTEST) {
537  return std::make_unique<CRegTestParams>();
538  }
539 
540  throw std::runtime_error(
541  strprintf("%s: Unknown chain %s.", __func__, chain));
542 }
543 
544 void SelectParams(const std::string &network) {
545  SelectBaseParams(network);
547 }
static constexpr Amount COIN
Definition: amount.h:154
void SelectParams(const std::string &network)
Sets the params returned by Params() to those for the given BIP70 chain name.
static std::unique_ptr< CChainParams > globalChainParams
const CChainParams & Params()
Return the currently selected parameters.
std::unique_ptr< CChainParams > CreateChainParams(const std::string &chain)
Creates and returns a std::unique_ptr<CChainParams> of the chosen chain.
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:18
std::map< int, const AssumeutxoData > MapAssumeutxo
Definition: chainparams.h:53
const CCheckpointData & CheckpointData(const std::string &chain)
void SelectBaseParams(const std::string &chain)
Sets the params returned by Params() to those for the given network.
static SeedSpec6 pnSeed6_main[]
List of fixed seed nodes for the bitcoin network @generated by contrib/seeds/generate-seeds....
static SeedSpec6 pnSeed6_test[]
bool GetBoolArg(const std::string &strArg, bool fDefault) const
Return boolean argument or default value.
Definition: system.cpp:603
static const std::string REGTEST
static const std::string TESTNET
static const std::string MAIN
BIP70 chain name strings (main, test or regtest)
BlockHash GetHash() const
Definition: block.cpp:11
uint32_t nNonce
Definition: block.h:30
uint32_t nBits
Definition: block.h:29
uint32_t nTime
Definition: block.h:28
BlockHash hashPrevBlock
Definition: block.h:26
int32_t nVersion
Definition: block.h:25
uint256 hashMerkleRoot
Definition: block.h:27
Definition: block.h:55
std::vector< CTransactionRef > vtx
Definition: block.h:58
CChainParams defines various tweakable parameters of a given instance of the Bitcoin system.
Definition: chainparams.h:74
uint64_t m_assumed_chain_state_size
Definition: chainparams.h:145
bool m_is_test_chain
Definition: chainparams.h:154
CBlock genesis
Definition: chainparams.h:150
MapAssumeutxo m_assumeutxo_data
Definition: chainparams.h:157
uint64_t m_assumed_blockchain_size
Definition: chainparams.h:144
CMessageHeader::MessageMagic netMagic
Definition: chainparams.h:141
std::vector< uint8_t > base58Prefixes[MAX_BASE58_TYPES]
Definition: chainparams.h:147
bool fDefaultConsistencyChecks
Definition: chainparams.h:152
std::vector< SeedSpec6 > vFixedSeeds
Definition: chainparams.h:151
std::string strNetworkID
Definition: chainparams.h:149
Consensus::Params consensus
Definition: chainparams.h:139
bool fRequireStandard
Definition: chainparams.h:153
std::string cashaddrPrefix
Definition: chainparams.h:148
std::vector< std::string > vSeeds
Definition: chainparams.h:146
bool m_is_mockable_chain
Definition: chainparams.h:155
CMessageHeader::MessageMagic diskMagic
Definition: chainparams.h:140
CCheckpointData checkpointData
Definition: chainparams.h:156
uint16_t nDefaultPort
Definition: chainparams.h:142
uint64_t nPruneAfterHeight
Definition: chainparams.h:143
ChainTxData chainTxData
Definition: chainparams.h:158
Main network.
Definition: chainparams.cpp:75
A mutable version of CTransaction.
Definition: transaction.h:278
std::vector< CTxOut > vout
Definition: transaction.h:281
std::vector< CTxIn > vin
Definition: transaction.h:280
Regression test.
Serialized script, used inside transaction inputs and outputs.
Definition: script.h:431
Testnet (v3)
void SetNull()
Definition: uint256.h:39
constexpr bool DEFAULT_ECASH
Definition: currencyunit.h:10
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
@ DEPLOYMENT_TESTDUMMY
Definition: params.h:31
static CTransactionRef MakeTransactionRef()
Definition: transaction.h:320
@ OP_CHECKSIG
Definition: script.h:163
std::vector< uint8_t > ParseHex(const char *psz)
Definition: amount.h:19
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:61
int bit
Bit position to select the particular bit in nVersion.
Definition: params.h:45
BlockHash defaultAssumeValid
Definition: params.h:131
int magneticAnomalyHeight
Block height at which the magnetic anomaly activation becomes active.
Definition: params.h:95
int BIP65Height
Block height at which BIP65 becomes active.
Definition: params.h:85
int CSVHeight
Block height at which CSV (BIP68, BIP112 and BIP113) becomes active.
Definition: params.h:89
int gravitonHeight
Block height at which the graviton activation becomes active.
Definition: params.h:97
int axionHeight
Block height at which the axion activation becomes active.
Definition: params.h:101
uint32_t nMinerConfirmationWindow
Definition: params.h:114
int wellingtonActivationTime
Unix time used for MTP activation of 15 May 2023 12:00:00 UTC upgrade.
Definition: params.h:107
int gluonHeight
Block height at which the gluon activation becomes active.
Definition: params.h:103
BlockHash BIP34Hash
Definition: params.h:83
int BIP16Height
Block height at which BIP16 becomes active.
Definition: params.h:80
int phononHeight
Block height at which the phonon activation becomes active.
Definition: params.h:99
int64_t nDAAHalfLife
Definition: params.h:124
int jeffersonActivationTime
Unix time used for MTP activation of 15 Nov 2022 12:00:00 UTC upgrade.
Definition: params.h:105
int BIP34Height
Block height and hash at which BIP34 becomes active.
Definition: params.h:82
int nSubsidyHalvingInterval
Definition: params.h:78
BIP9Deployment vDeployments[MAX_VERSION_BITS_DEPLOYMENTS]
Definition: params.h:115
bool fPowNoRetargeting
Definition: params.h:123
uint256 nMinimumChainWork
Definition: params.h:130
int daaHeight
Block height at which the new DAA becomes active.
Definition: params.h:93
int64_t nPowTargetTimespan
Definition: params.h:126
BlockHash hashGenesisBlock
Definition: params.h:77
int BIP66Height
Block height at which BIP66 becomes active.
Definition: params.h:87
uint256 powLimit
Proof of work parameters.
Definition: params.h:121
int uahfHeight
Block height at which UAHF kicks in.
Definition: params.h:91
bool enableMinerFund
Enable or disable the miner fund by default.
Definition: params.h:118
int64_t nPowTargetSpacing
Definition: params.h:125
bool fPowAllowMinDifficultyBlocks
Definition: params.h:122
ArgsManager gArgs
Definition: system.cpp:77
#define strprintf
Format arguments and return the string or write to given std::ostream (see tinyformat::format doc for...
Definition: tinyformat.h:1201
uint256 uint256S(const char *str)
uint256 from const char *.
Definition: uint256.h:141
assert(!tx.IsCoinBase())