Bitcoin ABC 0.26.3
P2P Digital Currency
Loading...
Searching...
No Matches
Functions | Variables
chainparamsbase.cpp File Reference
#include <chainparamsbase.h>
#include <common/args.h>
#include <tinyformat.h>
#include <cassert>
Include dependency graph for chainparamsbase.cpp:

Go to the source code of this file.

Functions

void SetupChainParamsBaseOptions (ArgsManager &argsman)
 Set the arguments for chainparams.
 
const CBaseChainParamsBaseParams ()
 Return the currently selected parameters.
 
std::unique_ptr< CBaseChainParamsCreateBaseChainParams (const std::string &chain)
 Port numbers for incoming Tor connections (8334, 18334, 38334, 18445) have been chosen arbitrarily to keep ranges of used ports tight.
 
void SelectBaseParams (const std::string &chain)
 Sets the params returned by Params() to those for the given network.
 

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.

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)

Port numbers for incoming Tor connections (8334, 18334, 38334, 18445) have been chosen arbitrarily to keep ranges of used ports tight.

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

Definition at line 46 of file chainparamsbase.cpp.

Here is the call graph for this function:
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 73 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:

Variable Documentation

◆ globalChainBaseParams

std::unique_ptr<CBaseChainParams> globalChainBaseParams
static

Definition at line 34 of file chainparamsbase.cpp.