Bitcoin Core  26.99.0
P2P Digital Currency
Enumerations | Functions
chaintype.h File Reference
#include <optional>
#include <string>
Include dependency graph for chaintype.h:

Go to the source code of this file.

Enumerations

enum class  ChainType { MAIN , TESTNET , SIGNET , REGTEST }
 

Functions

std::string ChainTypeToString (ChainType chain)
 
std::optional< ChainTypeChainTypeFromString (std::string_view chain)
 

Enumeration Type Documentation

◆ ChainType

enum ChainType
strong
Enumerator
MAIN 
TESTNET 
SIGNET 
REGTEST 

Definition at line 11 of file chaintype.h.

Function Documentation

◆ ChainTypeFromString()

std::optional<ChainType> ChainTypeFromString ( std::string_view  chain)

Definition at line 26 of file chaintype.cpp.

Here is the caller graph for this function:

◆ ChainTypeToString()

std::string ChainTypeToString ( ChainType  chain)

Definition at line 11 of file chaintype.cpp.

Here is the call graph for this function:
Here is the caller graph for this function: