Bitcoin
Classes | Functions
chainparamsbase.h File Reference
#include <memory>
#include <string>
#include <vector>

Go to the source code of this file.

Classes

class  CBaseChainParams
 

Functions

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

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