Bitcoin ABC 0.30.5
P2P Digital Currency
Classes | Functions
chainparamsbase.h File Reference
#include <memory>
#include <string>
Include dependency graph for chainparamsbase.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  CBaseChainParams
 CBaseChainParams defines the base parameters (shared between bitcoin-cli and bitcoind) of a given instance of the Bitcoin system. More...
 

Functions

std::unique_ptr< CBaseChainParamsCreateBaseChainParams (const std::string &chain)
 Creates and returns a std::unique_ptr<CBaseChainParams> of the chosen chain. More...
 
void SetupChainParamsBaseOptions (ArgsManager &argsman)
 Set the arguments for chainparams. More...
 
const CBaseChainParamsBaseParams ()
 Return the currently selected parameters. More...
 
void SelectBaseParams (const std::string &chain)
 Sets the params returned by Params() to those for the given network. More...
 

Function Documentation

◆ BaseParams()

const CBaseChainParams & BaseParams ( )

Return the currently selected parameters.

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

Definition at line 36 of file chainparamsbase.cpp.

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

◆ 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.

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

Definition at line 46 of file chainparamsbase.cpp.

Here is the caller graph for this function:

◆ SelectBaseParams()

void SelectBaseParams ( const std::string &  chain)

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

Definition at line 68 of file chainparamsbase.cpp.

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

◆ SetupChainParamsBaseOptions()

void SetupChainParamsBaseOptions ( ArgsManager argsman)

Set the arguments for chainparams.

Definition at line 17 of file chainparamsbase.cpp.

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