Changeset View
Changeset View
Standalone View
Standalone View
src/chainparams.cpp
Show First 20 Lines • Show All 145 Lines • ▼ Show 20 Lines | CMainParams() { | ||||
// Nov, 13 hard fork | // Nov, 13 hard fork | ||||
consensus.cashHardForkActivationTime = 1510600000; | consensus.cashHardForkActivationTime = 1510600000; | ||||
/** | /** | ||||
* The message start string is designed to be unlikely to occur in | * The message start string is designed to be unlikely to occur in | ||||
* normal data. The characters are rarely used upper ASCII, not valid as | * normal data. The characters are rarely used upper ASCII, not valid as | ||||
* UTF-8, and produce a large 32-bit integer with any alignment. | * UTF-8, and produce a large 32-bit integer with any alignment. | ||||
*/ | */ | ||||
pchMessageStart[0] = 0xf9; | diskMagic[0] = 0xf9; | ||||
pchMessageStart[1] = 0xbe; | diskMagic[1] = 0xbe; | ||||
pchMessageStart[2] = 0xb4; | diskMagic[2] = 0xb4; | ||||
pchMessageStart[3] = 0xd9; | diskMagic[3] = 0xd9; | ||||
pchCashMessageStart[0] = 0xe3; | netMagic[0] = 0xe3; | ||||
pchCashMessageStart[1] = 0xe1; | netMagic[1] = 0xe1; | ||||
pchCashMessageStart[2] = 0xf3; | netMagic[2] = 0xf3; | ||||
pchCashMessageStart[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("0x000000000019d6689c085ae165831e934ff763ae46a2a6c172b3" | ||||
▲ Show 20 Lines • Show All 144 Lines • ▼ Show 20 Lines | CTestNetParams() { | ||||
"3bbf4ca3e"); | "3bbf4ca3e"); | ||||
// Aug, 1 hard fork | // Aug, 1 hard fork | ||||
consensus.uahfHeight = 1155876; | consensus.uahfHeight = 1155876; | ||||
// Nov, 13 hard fork | // Nov, 13 hard fork | ||||
consensus.cashHardForkActivationTime = 1510600000; | consensus.cashHardForkActivationTime = 1510600000; | ||||
pchMessageStart[0] = 0x0b; | diskMagic[0] = 0x0b; | ||||
pchMessageStart[1] = 0x11; | diskMagic[1] = 0x11; | ||||
pchMessageStart[2] = 0x09; | diskMagic[2] = 0x09; | ||||
pchMessageStart[3] = 0x07; | diskMagic[3] = 0x07; | ||||
pchCashMessageStart[0] = 0xf4; | netMagic[0] = 0xf4; | ||||
pchCashMessageStart[1] = 0xe5; | netMagic[1] = 0xe5; | ||||
pchCashMessageStart[2] = 0xf3; | netMagic[2] = 0xf3; | ||||
pchCashMessageStart[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("0x000000000933ea01ad0ee984209779baaec3ced90fa3f4087195" | ||||
▲ Show 20 Lines • Show All 99 Lines • ▼ Show 20 Lines | CRegTestParams() { | ||||
consensus.defaultAssumeValid = uint256S("0x00"); | consensus.defaultAssumeValid = uint256S("0x00"); | ||||
// Hard fork is always enabled on regtest. | // Hard fork is always enabled on regtest. | ||||
consensus.uahfHeight = 0; | consensus.uahfHeight = 0; | ||||
// Nov, 13 hard fork is always on on regtest. | // Nov, 13 hard fork is always on on regtest. | ||||
consensus.cashHardForkActivationTime = 0; | consensus.cashHardForkActivationTime = 0; | ||||
pchMessageStart[0] = 0xfa; | diskMagic[0] = 0xfa; | ||||
pchMessageStart[1] = 0xbf; | diskMagic[1] = 0xbf; | ||||
pchMessageStart[2] = 0xb5; | diskMagic[2] = 0xb5; | ||||
pchMessageStart[3] = 0xda; | diskMagic[3] = 0xda; | ||||
pchCashMessageStart[0] = 0xda; | netMagic[0] = 0xda; | ||||
pchCashMessageStart[1] = 0xb5; | netMagic[1] = 0xb5; | ||||
pchCashMessageStart[2] = 0xbf; | netMagic[2] = 0xbf; | ||||
pchCashMessageStart[3] = 0xfa; | netMagic[3] = 0xfa; | ||||
nDefaultPort = 18444; | nDefaultPort = 18444; | ||||
nPruneAfterHeight = 1000; | nPruneAfterHeight = 1000; | ||||
genesis = CreateGenesisBlock(1296688602, 2, 0x207fffff, 1, 50 * COIN); | genesis = CreateGenesisBlock(1296688602, 2, 0x207fffff, 1, 50 * COIN); | ||||
consensus.hashGenesisBlock = genesis.GetHash(); | consensus.hashGenesisBlock = genesis.GetHash(); | ||||
assert(consensus.hashGenesisBlock == | assert(consensus.hashGenesisBlock == | ||||
uint256S("0x0f9188f13cb7b2c71f2a335e3a4fc328bf5beb436012afca590b" | uint256S("0x0f9188f13cb7b2c71f2a335e3a4fc328bf5beb436012afca590b" | ||||
"1a11466e2206")); | "1a11466e2206")); | ||||
▲ Show 20 Lines • Show All 71 Lines • Show Last 20 Lines |