Changeset View
Changeset View
Standalone View
Standalone View
src/chainparams.cpp
Show First 20 Lines • Show All 130 Lines • ▼ Show 20 Lines | CMainParams() { | ||||
consensus.vDeployments[Consensus::DEPLOYMENT_CSV].bit = 0; | consensus.vDeployments[Consensus::DEPLOYMENT_CSV].bit = 0; | ||||
// May 1st, 2016 | // May 1st, 2016 | ||||
consensus.vDeployments[Consensus::DEPLOYMENT_CSV].nStartTime = | consensus.vDeployments[Consensus::DEPLOYMENT_CSV].nStartTime = | ||||
1462060800; | 1462060800; | ||||
// May 1st, 2017 | // May 1st, 2017 | ||||
consensus.vDeployments[Consensus::DEPLOYMENT_CSV].nTimeout = 1493596800; | consensus.vDeployments[Consensus::DEPLOYMENT_CSV].nTimeout = 1493596800; | ||||
// The best chain should have at least this much work. | // The best chain should have at least this much work. | ||||
consensus.nMinimumChainWork = | consensus.nMinimumChainWork = uint256S( | ||||
uint256S("0x0000000000000000000000000000000000000000007e5dbf54c7f6b" | "000000000000000000000000000000000000000000915997400e8cf8e5e97d33"); | ||||
"58a6853cd"); | |||||
// By default assume that the signatures in ancestors of this block are | // By default assume that the signatures in ancestors of this block are | ||||
// valid. | // valid. | ||||
consensus.defaultAssumeValid = | consensus.defaultAssumeValid = uint256S( | ||||
uint256S("0x000000000000000005e14d3f9fdfb70745308706615cfa9edca4f45" | "000000000000000001d2ce557406b017a928be25ee98906397d339c3f68eec5d"); | ||||
"58332b201"); | |||||
// August 1, 2017 hard fork | // August 1, 2017 hard fork | ||||
consensus.uahfHeight = 478559; | consensus.uahfHeight = 478559; | ||||
// November 13, 2017 hard fork | // November 13, 2017 hard fork | ||||
consensus.daaHeight = 504031; | consensus.daaHeight = 504031; | ||||
// May 15, 2018 hard fork | // May 15, 2018 hard fork | ||||
▲ Show 20 Lines • Show All 96 Lines • ▼ Show 20 Lines | CMainParams() { | ||||
{478559, uint256S("0x000000000000000000651ef99cb9fcbe0dadde1d42" | {478559, uint256S("0x000000000000000000651ef99cb9fcbe0dadde1d42" | ||||
"4bd9f15ff20136191a5eec")}, | "4bd9f15ff20136191a5eec")}, | ||||
// Nov, 13 DAA activation block. | // Nov, 13 DAA activation block. | ||||
{504031, uint256S("0x0000000000000000011ebf65b60d0a3de80b8175be" | {504031, uint256S("0x0000000000000000011ebf65b60d0a3de80b8175be" | ||||
"709d653b4c1a1beeb6ab9c")}, | "709d653b4c1a1beeb6ab9c")}, | ||||
}}; | }}; | ||||
// Data as of block | // Data as of block | ||||
// 00000000000000000166d612d5595e2b1cd88d71d695fc580af64d8da8658c23 | // 000000000000000001d2ce557406b017a928be25ee98906397d339c3f68eec5d | ||||
// (height 446482). | // (height 523992). | ||||
chainTxData = ChainTxData{ | chainTxData = ChainTxData{ | ||||
// UNIX timestamp of last known number of transactions. | // UNIX timestamp of last known number of transactions. | ||||
1483472411, | 1522608016, | ||||
// Total number of transactions between genesis and that timestamp | // Total number of transactions between genesis and that timestamp | ||||
// (the tx=... number in the SetBestChain debug.log lines) | // (the tx=... number in the SetBestChain debug.log lines) | ||||
184495391, | 248589038, | ||||
// Estimated number of transactions per second after that timestamp. | // Estimated number of transactions per second after that timestamp. | ||||
3.2}; | 3.2}; | ||||
} | } | ||||
}; | }; | ||||
/** | /** | ||||
* Testnet (v3) | * Testnet (v3) | ||||
*/ | */ | ||||
Show All 34 Lines | CTestNetParams() { | ||||
consensus.vDeployments[Consensus::DEPLOYMENT_CSV].bit = 0; | consensus.vDeployments[Consensus::DEPLOYMENT_CSV].bit = 0; | ||||
// March 1st, 2016 | // March 1st, 2016 | ||||
consensus.vDeployments[Consensus::DEPLOYMENT_CSV].nStartTime = | consensus.vDeployments[Consensus::DEPLOYMENT_CSV].nStartTime = | ||||
1456790400; | 1456790400; | ||||
// May 1st, 2017 | // May 1st, 2017 | ||||
consensus.vDeployments[Consensus::DEPLOYMENT_CSV].nTimeout = 1493596800; | consensus.vDeployments[Consensus::DEPLOYMENT_CSV].nTimeout = 1493596800; | ||||
// The best chain should have at least this much work. | // The best chain should have at least this much work. | ||||
consensus.nMinimumChainWork = | consensus.nMinimumChainWork = uint256S( | ||||
uint256S("0x00000000000000000000000000000000000000000000002888c34d6" | "0000000000000000000000000000000000000000000000297b105869341c3527"); | ||||
"1b53a244a"); | |||||
// By default assume that the signatures in ancestors of this block are | // By default assume that the signatures in ancestors of this block are | ||||
// valid. | // valid. | ||||
consensus.defaultAssumeValid = | consensus.defaultAssumeValid = uint256S( | ||||
uint256S("0x000000000000b41f1f2ddf130df8824e2b61c0af809ff86dd5cadb3" | "000000000005b07ecf85563034d13efd81c1a29e47e22b20f4fc6919d5b09cd6"); | ||||
"61d984ca7"); | |||||
// August 1, 2017 hard fork | // August 1, 2017 hard fork | ||||
consensus.uahfHeight = 1155876; | consensus.uahfHeight = 1155876; | ||||
// November 13, 2017 hard fork | // November 13, 2017 hard fork | ||||
consensus.daaHeight = 1188697; | consensus.daaHeight = 1188697; | ||||
// May 15, 2018 hard fork | // May 15, 2018 hard fork | ||||
▲ Show 20 Lines • Show All 64 Lines • ▼ Show 20 Lines | CTestNetParams() { | ||||
{1155876, uint256S("00000000000e38fef93ed9582a7df43815d5c2ba9fd" | {1155876, uint256S("00000000000e38fef93ed9582a7df43815d5c2ba9fd" | ||||
"37ef70c9a0ea4a285b8f5")}, | "37ef70c9a0ea4a285b8f5")}, | ||||
// Nov, 13. DAA activation block. | // Nov, 13. DAA activation block. | ||||
{1188697, uint256S("0000000000170ed0918077bde7b4d36cc4c91be69fa" | {1188697, uint256S("0000000000170ed0918077bde7b4d36cc4c91be69fa" | ||||
"09211f748240dabe047fb")}, | "09211f748240dabe047fb")}, | ||||
}}; | }}; | ||||
// Data as of block | // Data as of block | ||||
// 00000000c2872f8f8a8935c8e3c5862be9038c97d4de2cf37ed496991166928a | // 000000000005b07ecf85563034d13efd81c1a29e47e22b20f4fc6919d5b09cd6 | ||||
// (height 1063660) | // (height 1223263) | ||||
chainTxData = ChainTxData{1483546230, 12834668, 0.15}; | chainTxData = ChainTxData{1522608381, 15052068, 0.15}; | ||||
} | } | ||||
}; | }; | ||||
/** | /** | ||||
* Regression test | * Regression test | ||||
*/ | */ | ||||
class CRegTestParams : public CChainParams { | class CRegTestParams : public CChainParams { | ||||
public: | public: | ||||
▲ Show 20 Lines • Show All 131 Lines • Show Last 20 Lines |