Bitcoin ABC  0.26.3
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("0000000000000000094a35728d0ffe9a152dd8d39c9fc6b21443f5c084429059");
9  const uint256 MAINNET_MINIMUM_CHAIN_WORK = uint256S("000000000000000000000000000000000000000001653c6edfd9b2944d9fd010");
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("000000000010cd84d4e5c3ece65e7743952c9b91e4432bd8ba6f9d3388df74e9");
14  const uint256 TESTNET_MINIMUM_CHAIN_WORK = uint256S("00000000000000000000000000000000000000000000006e99a2b137d4dc2828");
15  const uint64_t TESTNET_ASSUMED_BLOCKCHAIN_SIZE = 55;
16  const uint64_t TESTNET_ASSUMED_CHAINSTATE_SIZE = 2;
17 } // namespace ChainParamsConstants
18 
256-bit opaque blob.
Definition: uint256.h:127
Chain params constants for each tracked chain.
const uint64_t MAINNET_ASSUMED_CHAINSTATE_SIZE
const uint64_t TESTNET_ASSUMED_CHAINSTATE_SIZE
const uint64_t MAINNET_ASSUMED_BLOCKCHAIN_SIZE
const uint64_t TESTNET_ASSUMED_BLOCKCHAIN_SIZE
const BlockHash MAINNET_DEFAULT_ASSUME_VALID
const uint256 TESTNET_MINIMUM_CHAIN_WORK
const uint256 MAINNET_MINIMUM_CHAIN_WORK
const BlockHash TESTNET_DEFAULT_ASSUME_VALID
A BlockHash is a unqiue identifier for a block.
Definition: blockhash.h:13
static BlockHash fromHex(const std::string &str)
Definition: blockhash.h:17
uint256 uint256S(const char *str)
uint256 from const char *.
Definition: uint256.h:141