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 <chainparamsbestchainmainnet.h> | |||||
#include <chainparamsbestchaintestnet.h> | |||||
#include <chainparamsseeds.h> | #include <chainparamsseeds.h> | ||||
#include <consensus/merkle.h> | #include <consensus/merkle.h> | ||||
#include <tinyformat.h> | #include <tinyformat.h> | ||||
#include <util.h> | #include <util.h> | ||||
#include <utilstrencodings.h> | #include <utilstrencodings.h> | ||||
#include <cassert> | #include <cassert> | ||||
▲ Show 20 Lines • Show All 83 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 = GetMainNetMinimumChainWork(); | ||||
"000000000000000000000000000000000000000000f22fbd89943b5f5104e4ec"); | |||||
// 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 = GetMainNetDefaultAssumeValid(); | ||||
"00000000000000000401095ca2933cc4729484965e66e6a9f8e937070cc8e971"); | |||||
// 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 142 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 = GetTestNetMinimumChainWork(); | ||||
"00000000000000000000000000000000000000000000004f587a0e52b7984751"); | |||||
// 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 = GetTestNetDefaultAssumeValid(); | ||||
"00000000001b618c015c41cc218a60a5a94bc42e16e30f1426cfc138615201c3"); | |||||
// 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 195 Lines • Show Last 20 Lines |