![]() |
Bitcoin Core 31.1.0
P2P Digital Currency
|
CChainParams defines various tweakable parameters of a given instance of the Bitcoin system. More...
#include <chainparams.h>
Classes | |
| struct | SigNetOptions |
| SigNetOptions holds configurations for creating a signet CChainParams. More... | |
| struct | VersionBitsParameters |
| VersionBitsParameters holds activation parameters. More... | |
| struct | RegTestOptions |
| RegTestOptions holds configurations for creating a regtest CChainParams. More... | |
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 MessageStartChars & | MessageStart () const |
| uint16_t | GetDefaultPort () const |
| std::vector< int > | GetAvailableSnapshotHeights () const |
| const CBlock & | GenesisBlock () const |
| bool | DefaultConsistencyChecks () const |
| Default value for -checkmempool and -checkblockindex argument. | |
| bool | IsTestChain () const |
| If this chain is exclusively used for testing. | |
| bool | IsMockableChain () const |
| If this chain allows time to be mocked. | |
| uint64_t | PruneAfterHeight () const |
| uint64_t | AssumedBlockchainSize () const |
| Minimum free space (in GB) needed for data directory. | |
| uint64_t | AssumedChainStateSize () const |
| Minimum free space (in GB) needed for data directory when pruned; Does not include prune target. | |
| bool | MineBlocksOnDemand () const |
| Whether it is possible to mine blocks on demand (no retargeting). | |
| std::string | GetChainTypeString () const |
| Return the chain type string. | |
| ChainType | GetChainType () const |
| Return the chain type. | |
| const std::vector< std::string > & | DNSSeeds () const |
| Return the list of hostnames to look up for DNS seeds. | |
| const std::vector< unsigned char > & | Base58Prefix (Base58Type type) const |
| const std::string & | Bech32HRP () const |
| const std::vector< uint8_t > & | FixedSeeds () const |
| const HeadersSyncParams & | HeadersSync () const |
| std::optional< AssumeutxoData > | AssumeutxoForHeight (int height) const |
| std::optional< AssumeutxoData > | AssumeutxoForBlockhash (const uint256 &blockhash) const |
| const ChainTxData & | TxData () const |
Static Public Member Functions | |
| static std::unique_ptr< const CChainParams > | RegTest (const RegTestOptions &options) |
| static std::unique_ptr< const CChainParams > | SigNet (const SigNetOptions &options) |
| static std::unique_ptr< const CChainParams > | Main () |
| static std::unique_ptr< const CChainParams > | TestNet () |
| static std::unique_ptr< const CChainParams > | TestNet4 () |
Protected Member Functions | |
| CChainParams ()=default | |
Protected Attributes | |
| Consensus::Params | consensus |
| MessageStartChars | pchMessageStart |
| uint16_t | 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 |
| ChainType | m_chain_type |
| CBlock | genesis |
| std::vector< uint8_t > | vFixedSeeds |
| bool | fDefaultConsistencyChecks |
| bool | m_is_mockable_chain |
| std::vector< AssumeutxoData > | m_assumeutxo_data |
| ChainTxData | chainTxData |
| HeadersSyncParams | m_headers_sync_params |
CChainParams defines various tweakable parameters of a given instance of the Bitcoin system.
Definition at line 76 of file chainparams.h.
| Enumerator | |
|---|---|
| PUBKEY_ADDRESS | |
| SCRIPT_ADDRESS | |
| SECRET_KEY | |
| EXT_PUBLIC_KEY | |
| EXT_SECRET_KEY | |
| MAX_BASE58_TYPES | |
Definition at line 79 of file chainparams.h.
|
protecteddefault |
|
inline |
Minimum free space (in GB) needed for data directory.
Definition at line 103 of file chainparams.h.
|
inline |
Minimum free space (in GB) needed for data directory when pruned; Does not include prune target.
Definition at line 105 of file chainparams.h.
|
inline |
Definition at line 123 of file chainparams.h.
|
inline |
Definition at line 119 of file chainparams.h.
|
inline |
|
inline |
Definition at line 115 of file chainparams.h.
|
inline |
Default value for -checkmempool and -checkblockindex argument.
Definition at line 96 of file chainparams.h.
|
inline |
Return the list of hostnames to look up for DNS seeds.
Definition at line 113 of file chainparams.h.
|
inline |
Definition at line 116 of file chainparams.h.
|
inline |
| std::vector< int > CChainParams::GetAvailableSnapshotHeights | ( | ) | const |
Definition at line 716 of file chainparams.cpp.
|
inline |
Return the chain type.
Definition at line 111 of file chainparams.h.
|
inline |
Return the chain type string.
Definition at line 109 of file chainparams.h.
|
inline |
|
inline |
|
inline |
|
inline |
If this chain allows time to be mocked.
Definition at line 100 of file chainparams.h.
|
inline |
If this chain is exclusively used for testing.
Definition at line 98 of file chainparams.h.
|
static |
|
inline |
|
inline |
Whether it is possible to mine blocks on demand (no retargeting).
Definition at line 107 of file chainparams.h.
|
inline |
|
static |
|
static |
|
static |
|
static |
|
inline |
|
protected |
Definition at line 173 of file chainparams.h.
|
protected |
Definition at line 174 of file chainparams.h.
|
protected |
Definition at line 181 of file chainparams.h.
|
protected |
Definition at line 166 of file chainparams.h.
|
protected |
Definition at line 178 of file chainparams.h.
|
protected |
Definition at line 176 of file chainparams.h.
|
protected |
Definition at line 170 of file chainparams.h.
|
protected |
Definition at line 171 of file chainparams.h.
|
protected |
Definition at line 180 of file chainparams.h.
|
protected |
Definition at line 175 of file chainparams.h.
|
protected |
Definition at line 182 of file chainparams.h.
|
protected |
Definition at line 179 of file chainparams.h.
|
protected |
Definition at line 168 of file chainparams.h.
|
protected |
Definition at line 169 of file chainparams.h.
|
protected |
Definition at line 167 of file chainparams.h.
|
protected |
Definition at line 177 of file chainparams.h.
|
protected |
Definition at line 172 of file chainparams.h.