Bitcoin Core 28.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 ,
  TESTNET4
}
 

Functions

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

Enumeration Type Documentation

◆ ChainType

enum class ChainType
strong
Enumerator
MAIN 
TESTNET 
SIGNET 
REGTEST 
TESTNET4 

Definition at line 11 of file chaintype.h.

Function Documentation

◆ ChainTypeFromString()

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

Definition at line 28 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: