Changeset View
Changeset View
Standalone View
Standalone View
src/chainparams.cpp
Show First 20 Lines • Show All 189 Lines • ▼ Show 20 Lines | CMainParams() { | ||||
vSeeds.push_back( | vSeeds.push_back( | ||||
CDNSSeedData("criptolayer.net", "seeder.criptolayer.net", true)); | CDNSSeedData("criptolayer.net", "seeder.criptolayer.net", true)); | ||||
base58Prefixes[PUBKEY_ADDRESS] = std::vector<uint8_t>(1, 0); | base58Prefixes[PUBKEY_ADDRESS] = std::vector<uint8_t>(1, 0); | ||||
base58Prefixes[SCRIPT_ADDRESS] = std::vector<uint8_t>(1, 5); | base58Prefixes[SCRIPT_ADDRESS] = std::vector<uint8_t>(1, 5); | ||||
base58Prefixes[SECRET_KEY] = std::vector<uint8_t>(1, 128); | base58Prefixes[SECRET_KEY] = std::vector<uint8_t>(1, 128); | ||||
base58Prefixes[EXT_PUBLIC_KEY] = {0x04, 0x88, 0xB2, 0x1E}; | base58Prefixes[EXT_PUBLIC_KEY] = {0x04, 0x88, 0xB2, 0x1E}; | ||||
base58Prefixes[EXT_SECRET_KEY] = {0x04, 0x88, 0xAD, 0xE4}; | base58Prefixes[EXT_SECRET_KEY] = {0x04, 0x88, 0xAD, 0xE4}; | ||||
cashaddrPrefix = "bitcoincash"; | |||||
vFixedSeeds = std::vector<SeedSpec6>( | vFixedSeeds = std::vector<SeedSpec6>( | ||||
pnSeed6_main, pnSeed6_main + ARRAYLEN(pnSeed6_main)); | pnSeed6_main, pnSeed6_main + ARRAYLEN(pnSeed6_main)); | ||||
fMiningRequiresPeers = true; | fMiningRequiresPeers = true; | ||||
fDefaultConsistencyChecks = false; | fDefaultConsistencyChecks = false; | ||||
fRequireStandard = true; | fRequireStandard = true; | ||||
fMineBlocksOnDemand = false; | fMineBlocksOnDemand = false; | ||||
▲ Show 20 Lines • Show All 146 Lines • ▼ Show 20 Lines | CTestNetParams() { | ||||
vSeeds.push_back(CDNSSeedData("criptolayer.net", | vSeeds.push_back(CDNSSeedData("criptolayer.net", | ||||
"testnet-seeder.criptolayer.net", true)); | "testnet-seeder.criptolayer.net", true)); | ||||
base58Prefixes[PUBKEY_ADDRESS] = std::vector<uint8_t>(1, 111); | base58Prefixes[PUBKEY_ADDRESS] = std::vector<uint8_t>(1, 111); | ||||
base58Prefixes[SCRIPT_ADDRESS] = std::vector<uint8_t>(1, 196); | base58Prefixes[SCRIPT_ADDRESS] = std::vector<uint8_t>(1, 196); | ||||
base58Prefixes[SECRET_KEY] = std::vector<uint8_t>(1, 239); | base58Prefixes[SECRET_KEY] = std::vector<uint8_t>(1, 239); | ||||
base58Prefixes[EXT_PUBLIC_KEY] = {0x04, 0x35, 0x87, 0xCF}; | base58Prefixes[EXT_PUBLIC_KEY] = {0x04, 0x35, 0x87, 0xCF}; | ||||
base58Prefixes[EXT_SECRET_KEY] = {0x04, 0x35, 0x83, 0x94}; | base58Prefixes[EXT_SECRET_KEY] = {0x04, 0x35, 0x83, 0x94}; | ||||
cashaddrPrefix = "bcctest"; | |||||
vFixedSeeds = std::vector<SeedSpec6>( | vFixedSeeds = std::vector<SeedSpec6>( | ||||
pnSeed6_test, pnSeed6_test + ARRAYLEN(pnSeed6_test)); | pnSeed6_test, pnSeed6_test + ARRAYLEN(pnSeed6_test)); | ||||
fMiningRequiresPeers = true; | fMiningRequiresPeers = true; | ||||
fDefaultConsistencyChecks = false; | fDefaultConsistencyChecks = false; | ||||
fRequireStandard = false; | fRequireStandard = false; | ||||
fMineBlocksOnDemand = false; | fMineBlocksOnDemand = false; | ||||
▲ Show 20 Lines • Show All 100 Lines • ▼ Show 20 Lines | CRegTestParams() { | ||||
chainTxData = ChainTxData{0, 0, 0}; | chainTxData = ChainTxData{0, 0, 0}; | ||||
base58Prefixes[PUBKEY_ADDRESS] = std::vector<uint8_t>(1, 111); | base58Prefixes[PUBKEY_ADDRESS] = std::vector<uint8_t>(1, 111); | ||||
base58Prefixes[SCRIPT_ADDRESS] = std::vector<uint8_t>(1, 196); | base58Prefixes[SCRIPT_ADDRESS] = std::vector<uint8_t>(1, 196); | ||||
base58Prefixes[SECRET_KEY] = std::vector<uint8_t>(1, 239); | base58Prefixes[SECRET_KEY] = std::vector<uint8_t>(1, 239); | ||||
base58Prefixes[EXT_PUBLIC_KEY] = {0x04, 0x35, 0x87, 0xCF}; | base58Prefixes[EXT_PUBLIC_KEY] = {0x04, 0x35, 0x87, 0xCF}; | ||||
base58Prefixes[EXT_SECRET_KEY] = {0x04, 0x35, 0x83, 0x94}; | base58Prefixes[EXT_SECRET_KEY] = {0x04, 0x35, 0x83, 0x94}; | ||||
cashaddrPrefix = "bccreg"; | |||||
} | } | ||||
void UpdateBIP9Parameters(Consensus::DeploymentPos d, int64_t nStartTime, | void UpdateBIP9Parameters(Consensus::DeploymentPos d, int64_t nStartTime, | ||||
int64_t nTimeout) { | int64_t nTimeout) { | ||||
consensus.vDeployments[d].nStartTime = nStartTime; | consensus.vDeployments[d].nStartTime = nStartTime; | ||||
consensus.vDeployments[d].nTimeout = nTimeout; | consensus.vDeployments[d].nTimeout = nTimeout; | ||||
} | } | ||||
}; | }; | ||||
Show All 36 Lines |