![]() |
Bitcoin Core 32.1.0
P2P Digital Currency
|
CChainParams defines various tweakable parameters of a given instance of the Bitcoin system. More...
#include <chainparams.h>
Classes | |
| struct | VersionBitsParameters |
| VersionBitsParameters holds activation parameters. More... | |
| struct | DeploymentOptions |
| struct | SigNetOptions |
| SigNetOptions holds configurations for creating a signet CChainParams. More... | |
| struct | RegTestOptions |
| RegTestOptions holds configurations for creating a regtest CChainParams. More... | |
| struct | MainNetOptions |
| struct | TestNetOptions |
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 > | RegTest () |
| static std::unique_ptr< const CChainParams > | SigNet (const SigNetOptions &options) |
| static std::unique_ptr< const CChainParams > | SigNet () |
| static std::unique_ptr< const CChainParams > | Main (const MainNetOptions &options) |
| static std::unique_ptr< const CChainParams > | Main () |
| static std::unique_ptr< const CChainParams > | TestNet (const TestNetOptions &options) |
| static std::unique_ptr< const CChainParams > | TestNet () |
| static std::unique_ptr< const CChainParams > | TestNet4 (const TestNetOptions &options) |
| static std::unique_ptr< const CChainParams > | TestNet4 () |
Protected Member Functions | |
| CChainParams ()=default | |
| void | ApplyDeploymentOptions (const DeploymentOptions &opts) |
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 |
|
protected |
|
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 |
|
inline |
| std::vector< int > CChainParams::GetAvailableSnapshotHeights | ( | ) | const |
Definition at line 713 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.
|
inlinestatic |
Definition at line 175 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 |
|
inlinestatic |
Definition at line 171 of file chainparams.h.
|
static |
|
inlinestatic |
Definition at line 173 of file chainparams.h.
|
static |
|
inlinestatic |
Definition at line 177 of file chainparams.h.
|
static |
|
inlinestatic |
Definition at line 179 of file chainparams.h.
|
static |
|
inline |
|
protected |
Definition at line 191 of file chainparams.h.
|
protected |
Definition at line 192 of file chainparams.h.
|
protected |
Definition at line 199 of file chainparams.h.
|
protected |
Definition at line 184 of file chainparams.h.
|
protected |
Definition at line 196 of file chainparams.h.
|
protected |
Definition at line 194 of file chainparams.h.
|
protected |
Definition at line 188 of file chainparams.h.
|
protected |
Definition at line 189 of file chainparams.h.
|
protected |
Definition at line 198 of file chainparams.h.
|
protected |
Definition at line 193 of file chainparams.h.
|
protected |
Definition at line 200 of file chainparams.h.
|
protected |
Definition at line 197 of file chainparams.h.
|
protected |
Definition at line 186 of file chainparams.h.
|
protected |
Definition at line 187 of file chainparams.h.
|
protected |
Definition at line 185 of file chainparams.h.
|
protected |
Definition at line 195 of file chainparams.h.
|
protected |
Definition at line 190 of file chainparams.h.