Bitcoin
Functions | Variables
chainparamsbase.cpp File Reference
#include <chainparamsbase.h>
#include <tinyformat.h>
#include <util/system.h>
#include <util/memory.h>
#include <assert.h>

Functions

void SetupChainParamsBaseOptions ()
 
const CBaseChainParamsBaseParams ()
 
std::unique_ptr< CBaseChainParamsCreateBaseChainParams (const std::string &chain)
 
void SelectBaseParams (const std::string &chain)
 

Variables

static std::unique_ptr< CBaseChainParamsglobalChainBaseParams
 

Function Documentation

◆ BaseParams()

const CBaseChainParams& BaseParams ( )

Return the currently selected parameters. This won't change after app startup, except for unit tests.

◆ CreateBaseChainParams()

std::unique_ptr<CBaseChainParams> CreateBaseChainParams ( const std::string &  chain)

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

Returns
a CBaseChainParams* of the chosen chain.
Exceptions
astd::runtime_error if the chain is not supported.

◆ SelectBaseParams()

void SelectBaseParams ( const std::string &  chain)

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

◆ SetupChainParamsBaseOptions()

void SetupChainParamsBaseOptions ( )

Set the arguments for chainparams

Variable Documentation

◆ globalChainBaseParams

std::unique_ptr<CBaseChainParams> globalChainBaseParams
static