Identifies which Bitcoin chain a node operates on.
Synopsis
Declared in <util/chaintype.h>
enum class ChainType : int;
Members
Name |
Description |
|
The main Bitcoin network (mainnet). |
|
The version 3 public test network (testnet3). |
|
A signet network, where blocks require a signature. |
|
A private regression test network with on‐demand block creation. |
|
The version 4 public test network (testnet4). |
Non-Member Functions
Name |
Description |
Parse a chain type from its canonical string name. |
|
Convert a chain type to its canonical string name. |
|
Creates and returns a std::unique_ptr<CBaseChainParams> of the chosen chain. |
|
Determines which chain a set of network magic bytes belongs to. |
|
Sets the params returned by Params() to those for the given chain. |
|
Sets the params returned by Params() to those for the given chain type. |
Created with MrDocs