Changeset View
Changeset View
Standalone View
Standalone View
src/chainparams.cpp
// Copyright (c) 2010 Satoshi Nakamoto | // Copyright (c) 2010 Satoshi Nakamoto | ||||
// Copyright (c) 2009-2016 The Bitcoin Core developers | // Copyright (c) 2009-2016 The Bitcoin Core developers | ||||
// Copyright (c) 2017-2018 The Bitcoin developers | // Copyright (c) 2017-2018 The Bitcoin developers | ||||
// Distributed under the MIT software license, see the accompanying | // Distributed under the MIT software license, see the accompanying | ||||
// file COPYING or http://www.opensource.org/licenses/mit-license.php. | // file COPYING or http://www.opensource.org/licenses/mit-license.php. | ||||
#include <chainparams.h> | #include <chainparams.h> | ||||
#include <chainparamsconstants.h> | |||||
#include <chainparamsseeds.h> | #include <chainparamsseeds.h> | ||||
#include <consensus/merkle.h> | #include <consensus/merkle.h> | ||||
#include <tinyformat.h> | #include <tinyformat.h> | ||||
#include <util/strencodings.h> | #include <util/strencodings.h> | ||||
#include <util/system.h> | #include <util/system.h> | ||||
#include <cassert> | #include <cassert> | ||||
▲ Show 20 Lines • Show All 82 Lines • ▼ Show 20 Lines | CMainParams() { | ||||
"00000000ffffffffffffffffffffffffffffffffffffffffffffffffffffffff"); | "00000000ffffffffffffffffffffffffffffffffffffffffffffffffffffffff"); | ||||
// two weeks | // two weeks | ||||
consensus.nPowTargetTimespan = 14 * 24 * 60 * 60; | consensus.nPowTargetTimespan = 14 * 24 * 60 * 60; | ||||
consensus.nPowTargetSpacing = 10 * 60; | consensus.nPowTargetSpacing = 10 * 60; | ||||
consensus.fPowAllowMinDifficultyBlocks = false; | consensus.fPowAllowMinDifficultyBlocks = false; | ||||
consensus.fPowNoRetargeting = false; | consensus.fPowNoRetargeting = false; | ||||
// 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 = | ||||
"000000000000000000000000000000000000000000fd614ab0f9f59277fe2975"); | ChainParamsConstants::MAINNET_MINIMUM_CHAIN_WORK; | ||||
// 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 = | ||||
"000000000000000002be7b5e999ab5d40b8cbcbabd0f288695881da496eb65a2"); | ChainParamsConstants::MAINNET_DEFAULT_ASSUME_VALID; | ||||
// 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; | ||||
// November 15, 2018 hard fork | // November 15, 2018 hard fork | ||||
▲ Show 20 Lines • Show All 145 Lines • ▼ Show 20 Lines | CTestNetParams() { | ||||
"00000000ffffffffffffffffffffffffffffffffffffffffffffffffffffffff"); | "00000000ffffffffffffffffffffffffffffffffffffffffffffffffffffffff"); | ||||
// two weeks | // two weeks | ||||
consensus.nPowTargetTimespan = 14 * 24 * 60 * 60; | consensus.nPowTargetTimespan = 14 * 24 * 60 * 60; | ||||
consensus.nPowTargetSpacing = 10 * 60; | consensus.nPowTargetSpacing = 10 * 60; | ||||
consensus.fPowAllowMinDifficultyBlocks = true; | consensus.fPowAllowMinDifficultyBlocks = true; | ||||
consensus.fPowNoRetargeting = false; | consensus.fPowNoRetargeting = false; | ||||
// 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 = | ||||
"0000000000000000000000000000000000000000000000512031dc9900995ec4"); | ChainParamsConstants::TESTNET_MINIMUM_CHAIN_WORK; | ||||
// 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 = | ||||
"00000000fbabb53ec6eddb3d56d3262f30dbb6549b391255090d351eccd01c24"); | ChainParamsConstants::TESTNET_DEFAULT_ASSUME_VALID; | ||||
// 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; | ||||
// November 15, 2018 hard fork | // November 15, 2018 hard fork | ||||
▲ Show 20 Lines • Show All 199 Lines • Show Last 20 Lines |