Bitcoin Core 28.99.0
P2P Digital Currency
Functions | Variables
chainparams.cpp File Reference
#include <chainparams.h>
#include <chainparamsbase.h>
#include <common/args.h>
#include <consensus/params.h>
#include <deploymentinfo.h>
#include <logging.h>
#include <tinyformat.h>
#include <util/chaintype.h>
#include <util/strencodings.h>
#include <util/string.h>
#include <cassert>
#include <cstdint>
#include <limits>
#include <stdexcept>
#include <vector>
Include dependency graph for chainparams.cpp:

Go to the source code of this file.

Functions

void ReadSigNetArgs (const ArgsManager &args, CChainParams::SigNetOptions &options)
 
void ReadRegTestArgs (const ArgsManager &args, CChainParams::RegTestOptions &options)
 
const CChainParamsParams ()
 Return the currently selected parameters. More...
 
std::unique_ptr< const CChainParamsCreateChainParams (const ArgsManager &args, const ChainType chain)
 Creates and returns a std::unique_ptr<CChainParams> of the chosen chain. More...
 
void SelectParams (const ChainType chain)
 Sets the params returned by Params() to those for the given chain type. More...
 

Variables

static std::unique_ptr< const CChainParamsglobalChainParams
 

Function Documentation

◆ CreateChainParams()

std::unique_ptr< const CChainParams > CreateChainParams ( const ArgsManager args,
const ChainType  chain 
)

Creates and returns a std::unique_ptr<CChainParams> of the chosen chain.

Definition at line 112 of file chainparams.cpp.

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

◆ Params()

const CChainParams & Params ( )

Return the currently selected parameters.

This won't change after app startup, except for unit tests.

Definition at line 107 of file chainparams.cpp.

Here is the call graph for this function:

◆ ReadRegTestArgs()

void ReadRegTestArgs ( const ArgsManager args,
CChainParams::RegTestOptions options 
)

Definition at line 44 of file chainparams.cpp.

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

◆ ReadSigNetArgs()

void ReadSigNetArgs ( const ArgsManager args,
CChainParams::SigNetOptions options 
)

Definition at line 26 of file chainparams.cpp.

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

◆ SelectParams()

void SelectParams ( const ChainType  chain)

Sets the params returned by Params() to those for the given chain type.

Definition at line 135 of file chainparams.cpp.

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

Variable Documentation

◆ globalChainParams

std::unique_ptr<const CChainParams> globalChainParams
static

Definition at line 105 of file chainparams.cpp.