Bitcoin ABC  0.24.10
P2P Digital Currency
chainparamsconstants.cpp
Go to the documentation of this file.
1 
5 #include <chainparamsconstants.h>
6 
7 namespace ChainParamsConstants {
8  const BlockHash MAINNET_DEFAULT_ASSUME_VALID = BlockHash::fromHex("000000000000000002811f81fa3038f54fececdee01d352c540964c618ab6ee3");
9  const uint256 MAINNET_MINIMUM_CHAIN_WORK = uint256S("00000000000000000000000000000000000000000159b995d433b22ad7419b5f");
10  const uint64_t MAINNET_ASSUMED_BLOCKCHAIN_SIZE = 210;
11  const uint64_t MAINNET_ASSUMED_CHAINSTATE_SIZE = 3;
12 
13  const BlockHash TESTNET_DEFAULT_ASSUME_VALID = BlockHash::fromHex("000000000007246b9ea791e3da0a979862cb83c61ee9562d97b0df64f14160f0");
14  const uint256 TESTNET_MINIMUM_CHAIN_WORK = uint256S("00000000000000000000000000000000000000000000006e879e82c9fd4c5e02");
15  const uint64_t TESTNET_ASSUMED_BLOCKCHAIN_SIZE = 55;
16  const uint64_t TESTNET_ASSUMED_CHAINSTATE_SIZE = 2;
17 } // namespace ChainParamsConstants
18 
ChainParamsConstants::MAINNET_DEFAULT_ASSUME_VALID
const BlockHash MAINNET_DEFAULT_ASSUME_VALID
Definition: chainparamsconstants.cpp:8
ChainParamsConstants::MAINNET_MINIMUM_CHAIN_WORK
const uint256 MAINNET_MINIMUM_CHAIN_WORK
Definition: chainparamsconstants.cpp:9
ChainParamsConstants::TESTNET_ASSUMED_CHAINSTATE_SIZE
const uint64_t TESTNET_ASSUMED_CHAINSTATE_SIZE
Definition: chainparamsconstants.cpp:16
ChainParamsConstants::MAINNET_ASSUMED_BLOCKCHAIN_SIZE
const uint64_t MAINNET_ASSUMED_BLOCKCHAIN_SIZE
Definition: chainparamsconstants.cpp:10
BlockHash::fromHex
static BlockHash fromHex(const std::string &str)
Definition: blockhash.h:17
ChainParamsConstants::MAINNET_ASSUMED_CHAINSTATE_SIZE
const uint64_t MAINNET_ASSUMED_CHAINSTATE_SIZE
Definition: chainparamsconstants.cpp:11
chainparamsconstants.h
uint256
256-bit opaque blob.
Definition: uint256.h:127
uint256S
uint256 uint256S(const char *str)
uint256 from const char *.
Definition: uint256.h:141
ChainParamsConstants
Chain params constants for each tracked chain.
Definition: chainparamsconstants.h:14
BlockHash
A BlockHash is a unqiue identifier for a block.
Definition: blockhash.h:13
ChainParamsConstants::TESTNET_DEFAULT_ASSUME_VALID
const BlockHash TESTNET_DEFAULT_ASSUME_VALID
Definition: chainparamsconstants.cpp:13
ChainParamsConstants::TESTNET_ASSUMED_BLOCKCHAIN_SIZE
const uint64_t TESTNET_ASSUMED_BLOCKCHAIN_SIZE
Definition: chainparamsconstants.cpp:15
ChainParamsConstants::TESTNET_MINIMUM_CHAIN_WORK
const uint256 TESTNET_MINIMUM_CHAIN_WORK
Definition: chainparamsconstants.cpp:14