Changeset View
Changeset View
Standalone View
Standalone View
src/chainparams.cpp
Show First 20 Lines • Show All 94 Lines • ▼ Show 20 Lines | |||||
* + Contains no strange transactions | * + Contains no strange transactions | ||||
*/ | */ | ||||
class CMainParams : public CChainParams { | class CMainParams : public CChainParams { | ||||
public: | public: | ||||
CMainParams() { | CMainParams() { | ||||
strNetworkID = "main"; | strNetworkID = "main"; | ||||
consensus.nSubsidyHalvingInterval = 210000; | consensus.nSubsidyHalvingInterval = 210000; | ||||
consensus.BIP34Height = 227931; | consensus.BIP34Height = 227931; | ||||
consensus.BIP34Hash = uint256S("0x000000000000024b89b42a942fe0d9fea3bb4" | consensus.BIP34Hash = uint256S( | ||||
"4ab7bd1b19115dd6a759c0808b8"); | "000000000000024b89b42a942fe0d9fea3bb44ab7bd1b19115dd6a759c0808b8"); | ||||
// 000000000000000004c2b624ed5d7756c508d90fd0da2c7c679febfa6c4735f0 | // 000000000000000004c2b624ed5d7756c508d90fd0da2c7c679febfa6c4735f0 | ||||
consensus.BIP65Height = 388381; | consensus.BIP65Height = 388381; | ||||
// 00000000000000000379eaa19dce8c9b722d46ae6a57c2f1a988119488b50931 | // 00000000000000000379eaa19dce8c9b722d46ae6a57c2f1a988119488b50931 | ||||
consensus.BIP66Height = 363725; | consensus.BIP66Height = 363725; | ||||
consensus.antiReplayOpReturnSunsetHeight = 530000; | consensus.antiReplayOpReturnSunsetHeight = 530000; | ||||
consensus.antiReplayOpReturnCommitment = GetAntiReplayCommitment(); | consensus.antiReplayOpReturnCommitment = GetAntiReplayCommitment(); | ||||
consensus.powLimit = uint256S( | consensus.powLimit = uint256S( | ||||
"00000000ffffffffffffffffffffffffffffffffffffffffffffffffffffffff"); | "00000000ffffffffffffffffffffffffffffffffffffffffffffffffffffffff"); | ||||
Show All 19 Lines | CMainParams() { | ||||
// 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 = uint256S( | consensus.nMinimumChainWork = uint256S( | ||||
"000000000000000000000000000000000000000000915997400e8cf8e5e97d33"); | "00000000000000000000000000000000000000000096be820973e0c3d70f437e"); | ||||
// 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 = uint256S( | consensus.defaultAssumeValid = uint256S( | ||||
"000000000000000001d2ce557406b017a928be25ee98906397d339c3f68eec5d"); | "000000000000000001ad94189e956f1c1c28c8c34d2aae9bb8ce0c7f2b93b287"); | ||||
// August 1, 2017 hard fork | // August 1, 2017 hard fork | ||||
consensus.uahfHeight = 478558; | consensus.uahfHeight = 478558; | ||||
// 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 All 17 Lines | CMainParams() { | ||||
netMagic[3] = 0xe8; | netMagic[3] = 0xe8; | ||||
nDefaultPort = 8333; | nDefaultPort = 8333; | ||||
nPruneAfterHeight = 100000; | nPruneAfterHeight = 100000; | ||||
genesis = CreateGenesisBlock(1231006505, 2083236893, 0x1d00ffff, 1, | genesis = CreateGenesisBlock(1231006505, 2083236893, 0x1d00ffff, 1, | ||||
50 * COIN); | 50 * COIN); | ||||
consensus.hashGenesisBlock = genesis.GetHash(); | consensus.hashGenesisBlock = genesis.GetHash(); | ||||
assert(consensus.hashGenesisBlock == | assert(consensus.hashGenesisBlock == | ||||
uint256S("0x000000000019d6689c085ae165831e934ff763ae46a2a6c172b3" | uint256S("000000000019d6689c085ae165831e934ff763ae46a2a6c172b3f1" | ||||
"f1b60a8ce26f")); | "b60a8ce26f")); | ||||
assert(genesis.hashMerkleRoot == | assert(genesis.hashMerkleRoot == | ||||
uint256S("0x4a5e1e4baab89f3a32518a88c31bc87f618f76673e2cc77ab212" | uint256S("4a5e1e4baab89f3a32518a88c31bc87f618f76673e2cc77ab2127b" | ||||
"7b7afdeda33b")); | "7afdeda33b")); | ||||
// Note that of those with the service bits flag, most only support a | // Note that of those with the service bits flag, most only support a | ||||
// subset of possible options. | // subset of possible options. | ||||
// Bitcoin ABC seeder | // Bitcoin ABC seeder | ||||
vSeeds.push_back( | vSeeds.push_back( | ||||
CDNSSeedData("bitcoinabc.org", "seed.bitcoinabc.org", true)); | CDNSSeedData("bitcoinabc.org", "seed.bitcoinabc.org", true)); | ||||
// bitcoinforks seeders | // bitcoinforks seeders | ||||
vSeeds.push_back(CDNSSeedData("bitcoinforks.org", | vSeeds.push_back(CDNSSeedData("bitcoinforks.org", | ||||
▲ Show 20 Lines • Show All 80 Lines • ▼ Show 20 Lines | |||||
* Testnet (v3) | * Testnet (v3) | ||||
*/ | */ | ||||
class CTestNetParams : public CChainParams { | class CTestNetParams : public CChainParams { | ||||
public: | public: | ||||
CTestNetParams() { | CTestNetParams() { | ||||
strNetworkID = "test"; | strNetworkID = "test"; | ||||
consensus.nSubsidyHalvingInterval = 210000; | consensus.nSubsidyHalvingInterval = 210000; | ||||
consensus.BIP34Height = 21111; | consensus.BIP34Height = 21111; | ||||
consensus.BIP34Hash = uint256S("0x0000000023b3a96d3484e5abb3755c413e7d4" | consensus.BIP34Hash = uint256S( | ||||
"1500f8e2a5c3f0dd01299cd8ef8"); | "0000000023b3a96d3484e5abb3755c413e7d41500f8e2a5c3f0dd01299cd8ef8"); | ||||
// 00000000007f6655f22f98e72ed80d8b06dc761d5da09df0fa1dc4be4f861eb6 | // 00000000007f6655f22f98e72ed80d8b06dc761d5da09df0fa1dc4be4f861eb6 | ||||
consensus.BIP65Height = 581885; | consensus.BIP65Height = 581885; | ||||
// 000000002104c8c45e99a8853285a3b592602a3ccde2b832481da85e9e4ba182 | // 000000002104c8c45e99a8853285a3b592602a3ccde2b832481da85e9e4ba182 | ||||
consensus.BIP66Height = 330776; | consensus.BIP66Height = 330776; | ||||
consensus.antiReplayOpReturnSunsetHeight = 1250000; | consensus.antiReplayOpReturnSunsetHeight = 1250000; | ||||
consensus.antiReplayOpReturnCommitment = GetAntiReplayCommitment(); | consensus.antiReplayOpReturnCommitment = GetAntiReplayCommitment(); | ||||
consensus.powLimit = uint256S( | consensus.powLimit = uint256S( | ||||
"00000000ffffffffffffffffffffffffffffffffffffffffffffffffffffffff"); | "00000000ffffffffffffffffffffffffffffffffffffffffffffffffffffffff"); | ||||
Show All 19 Lines | CTestNetParams() { | ||||
// 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 = uint256S( | consensus.nMinimumChainWork = uint256S( | ||||
"0000000000000000000000000000000000000000000000297b105869341c3527"); | "00000000000000000000000000000000000000000000002a1bc26caae848fa38"); | ||||
// 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 = uint256S( | consensus.defaultAssumeValid = uint256S( | ||||
"000000000005b07ecf85563034d13efd81c1a29e47e22b20f4fc6919d5b09cd6"); | "000000004ca1bb261765b723cab6c90d0ecfabe1aad8c16a12378c015ab35e78"); | ||||
// August 1, 2017 hard fork | // August 1, 2017 hard fork | ||||
consensus.uahfHeight = 1155875; | consensus.uahfHeight = 1155875; | ||||
// 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 All 12 Lines | CTestNetParams() { | ||||
netMagic[3] = 0xf4; | netMagic[3] = 0xf4; | ||||
nDefaultPort = 18333; | nDefaultPort = 18333; | ||||
nPruneAfterHeight = 1000; | nPruneAfterHeight = 1000; | ||||
genesis = | genesis = | ||||
CreateGenesisBlock(1296688602, 414098458, 0x1d00ffff, 1, 50 * COIN); | CreateGenesisBlock(1296688602, 414098458, 0x1d00ffff, 1, 50 * COIN); | ||||
consensus.hashGenesisBlock = genesis.GetHash(); | consensus.hashGenesisBlock = genesis.GetHash(); | ||||
assert(consensus.hashGenesisBlock == | assert(consensus.hashGenesisBlock == | ||||
uint256S("0x000000000933ea01ad0ee984209779baaec3ced90fa3f4087195" | uint256S("000000000933ea01ad0ee984209779baaec3ced90fa3f408719526" | ||||
"26f8d77f4943")); | "f8d77f4943")); | ||||
assert(genesis.hashMerkleRoot == | assert(genesis.hashMerkleRoot == | ||||
uint256S("0x4a5e1e4baab89f3a32518a88c31bc87f618f76673e2cc77ab212" | uint256S("4a5e1e4baab89f3a32518a88c31bc87f618f76673e2cc77ab2127b" | ||||
"7b7afdeda33b")); | "7afdeda33b")); | ||||
vFixedSeeds.clear(); | vFixedSeeds.clear(); | ||||
vSeeds.clear(); | vSeeds.clear(); | ||||
// nodes with support for servicebits filtering should be at the top | // nodes with support for servicebits filtering should be at the top | ||||
// Bitcoin ABC seeder | // Bitcoin ABC seeder | ||||
vSeeds.push_back(CDNSSeedData("bitcoinabc.org", | vSeeds.push_back(CDNSSeedData("bitcoinabc.org", | ||||
"testnet-seed.bitcoinabc.org", true)); | "testnet-seed.bitcoinabc.org", true)); | ||||
// bitcoinforks seeders | // bitcoinforks seeders | ||||
▲ Show 20 Lines • Show All 181 Lines • Show Last 20 Lines |