![]() |
Bitcoin Core
0.21.1
P2P Digital Currency
|
CChainParams defines various tweakable parameters of a given instance of the Bitcoin system. More...
#include <chainparams.h>
Public Types | |
| enum | Base58Type { PUBKEY_ADDRESS, SCRIPT_ADDRESS, SECRET_KEY, EXT_PUBLIC_KEY, EXT_SECRET_KEY, MAX_BASE58_TYPES } |
Public Member Functions | |
| const Consensus::Params & | GetConsensus () const |
| const CMessageHeader::MessageStartChars & | MessageStart () const |
| int | GetDefaultPort () const |
| const CBlock & | GenesisBlock () const |
| bool | DefaultConsistencyChecks () const |
| Default value for -checkmempool and -checkblockindex argument. More... | |
| bool | RequireStandard () const |
| Policy: Filter transactions that do not match well-defined patterns. More... | |
| bool | IsTestChain () const |
| If this chain is exclusively used for testing. More... | |
| bool | IsMockableChain () const |
| If this chain allows time to be mocked. More... | |
| uint64_t | PruneAfterHeight () const |
| uint64_t | AssumedBlockchainSize () const |
| Minimum free space (in GB) needed for data directory. More... | |
| uint64_t | AssumedChainStateSize () const |
| Minimum free space (in GB) needed for data directory when pruned; Does not include prune target. More... | |
| bool | MineBlocksOnDemand () const |
| Whether it is possible to mine blocks on demand (no retargeting) More... | |
| std::string | NetworkIDString () const |
| Return the network string. More... | |
| const std::vector< std::string > & | DNSSeeds () const |
| Return the list of hostnames to look up for DNS seeds. More... | |
| const std::vector< unsigned char > & | Base58Prefix (Base58Type type) const |
| const std::string & | Bech32HRP () const |
| const std::vector< SeedSpec6 > & | FixedSeeds () const |
| const CCheckpointData & | Checkpoints () const |
| const ChainTxData & | TxData () const |
Protected Member Functions | |
| CChainParams () | |
Protected Attributes | |
| Consensus::Params | consensus |
| CMessageHeader::MessageStartChars | pchMessageStart |
| int | nDefaultPort |
| uint64_t | nPruneAfterHeight |
| uint64_t | m_assumed_blockchain_size |
| uint64_t | m_assumed_chain_state_size |
| std::vector< std::string > | vSeeds |
| std::vector< unsigned char > | base58Prefixes [MAX_BASE58_TYPES] |
| std::string | bech32_hrp |
| std::string | strNetworkID |
| CBlock | genesis |
| std::vector< SeedSpec6 > | vFixedSeeds |
| bool | fDefaultConsistencyChecks |
| bool | fRequireStandard |
| bool | m_is_test_chain |
| bool | m_is_mockable_chain |
| CCheckpointData | checkpointData |
| ChainTxData | chainTxData |
CChainParams defines various tweakable parameters of a given instance of the Bitcoin system.
There are three: the main network on which people trade goods and services, the public test network which gets reset from time to time and a regression test mode which is intended for private networks only. It has minimal difficulty to ensure that blocks can be found instantly.
Definition at line 52 of file chainparams.h.
| Enumerator | |
|---|---|
| PUBKEY_ADDRESS | |
| SCRIPT_ADDRESS | |
| SECRET_KEY | |
| EXT_PUBLIC_KEY | |
| EXT_SECRET_KEY | |
| MAX_BASE58_TYPES | |
Definition at line 55 of file chainparams.h.
|
inlineprotected |
Definition at line 95 of file chainparams.h.
|
inline |
Minimum free space (in GB) needed for data directory.
Definition at line 80 of file chainparams.h.
|
inline |
Minimum free space (in GB) needed for data directory when pruned; Does not include prune target.
Definition at line 82 of file chainparams.h.
|
inline |
|
inline |
Definition at line 90 of file chainparams.h.
|
inline |
Definition at line 92 of file chainparams.h.
|
inline |
Default value for -checkmempool and -checkblockindex argument.
Definition at line 71 of file chainparams.h.
|
inline |
Return the list of hostnames to look up for DNS seeds.
Definition at line 88 of file chainparams.h.
|
inline |
Definition at line 91 of file chainparams.h.
|
inline |
|
inline |
|
inline |
Definition at line 67 of file chainparams.h.
|
inline |
If this chain allows time to be mocked.
Definition at line 77 of file chainparams.h.
|
inline |
If this chain is exclusively used for testing.
Definition at line 75 of file chainparams.h.
|
inline |
|
inline |
Whether it is possible to mine blocks on demand (no retargeting)
Definition at line 84 of file chainparams.h.
|
inline |
Return the network string.
Definition at line 86 of file chainparams.h.
|
inline |
Definition at line 78 of file chainparams.h.
|
inline |
Policy: Filter transactions that do not match well-defined patterns.
Definition at line 73 of file chainparams.h.
|
inline |
|
protected |
Definition at line 104 of file chainparams.h.
|
protected |
Definition at line 105 of file chainparams.h.
|
protected |
Definition at line 114 of file chainparams.h.
|
protected |
Definition at line 113 of file chainparams.h.
|
protected |
Definition at line 97 of file chainparams.h.
|
protected |
Definition at line 109 of file chainparams.h.
|
protected |
Definition at line 110 of file chainparams.h.
|
protected |
Definition at line 107 of file chainparams.h.
|
protected |
Definition at line 101 of file chainparams.h.
|
protected |
Definition at line 102 of file chainparams.h.
|
protected |
Definition at line 112 of file chainparams.h.
|
protected |
Definition at line 111 of file chainparams.h.
|
protected |
Definition at line 99 of file chainparams.h.
|
protected |
Definition at line 100 of file chainparams.h.
|
protected |
Definition at line 98 of file chainparams.h.
|
protected |
Definition at line 106 of file chainparams.h.
|
protected |
Definition at line 108 of file chainparams.h.
|
protected |
Definition at line 103 of file chainparams.h.
1.8.8