Chain parameters describing a particular Bitcoin network.
Synopsis
Declared in <kernel/chainparams.h>
class CChainParams;
Types
Name |
Description |
Overrides for consensus deployment activation on a custom chain. |
|
Options for creating a mainnet CChainParams. |
|
RegTestOptions holds configurations for creating a regtest CChainParams. |
|
SigNetOptions holds configurations for creating a signet CChainParams. |
|
Options for creating a testnet CChainParams. |
|
VersionBitsParameters holds activation parameters |
Enums
Name |
Description |
Index into the table of Base58 version prefixes for each address type. |
Member Functions
Name |
Description |
Minimum free space (in GB) needed for the data directory. |
|
Minimum free space (in GB) needed for the data directory when pruned; does not include the prune target. |
|
Looks up the assumeutxo snapshot data for a given base block hash. |
|
Looks up the assumeutxo snapshot data for a given block height. |
|
Returns the Base58 version prefix bytes for a given address type. |
|
Returns the human‐readable part used for Bech32 addresses. |
|
Returns the list of hostnames to look up for DNS seeds. |
|
Default value for the ‐checkmempool and ‐checkblockindex arguments. |
|
Returns the built‐in list of fixed peer seeds. |
|
Returns the genesis block of this chain. |
|
Returns the heights for which an assumeutxo snapshot is available. |
|
Returns the chain type of this instance. |
|
Returns the chain type as a human‐readable string. |
|
Returns the consensus parameters for this chain. |
|
Returns the default P2P port for this chain. |
|
Returns the headers‐sync memory usage parameters. |
|
Reports whether this chain allows time to be mocked. |
|
Reports whether this chain is exclusively used for testing. |
|
Returns the network magic bytes that prefix every P2P message. |
|
Reports whether blocks can be mined on demand without retargeting. |
|
Returns the block height below which pruning is not attempted. |
|
Returns the transaction statistics used to estimate sync progress. |
Static Member Functions
Protected Member Functions
Name |
Description |
|
Default‐constructs an empty set of chain parameters. |
Applies deployment activation overrides to the consensus parameters. |
Protected Data Members
Name |
Description |
Base58 version prefixes indexed by Base58Type. |
|
Human‐readable part used for Bech32 addresses. |
|
Transaction statistics used to estimate sync progress. |
|
Consensus rule parameters for this chain. |
|
Whether consistency checks run by default. |
|
Genesis block of this chain. |
|
Assumed full blockchain size, in gigabytes. |
|
Assumed pruned chain‐state size, in gigabytes. |
|
Recognized assumeutxo snapshots for this chain. |
|
Chain type of this instance. |
|
Headers‐sync memory usage parameters. |
|
Whether the block time can be mocked. |
|
Default P2P port for this chain. |
|
Block height below which pruning is not attempted. |
|
Network magic bytes prefixing every P2P message. |
|
Built‐in list of fixed peer seeds. |
|
Hostnames looked up for DNS seeds. |
Non-Member Functions
Name |
Description |
Creates and returns a std::unique_ptr<CChainParams> of the chosen chain. |
|
Return the currently selected parameters. This won't change after app startup, except for unit tests. |
Created with MrDocs