Bitcoin Core 31.1.0
P2P Digital Currency
Loading...
Searching...
No Matches
chainparamsbase.h File Reference
#include <util/chaintype.h>
#include <cstdint>
#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...

Macros

#define LIST_CHAIN_NAMES   "main, test, testnet4, signet, regtest"
 List of possible chain / network names.

Functions

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

Macro Definition Documentation

◆ LIST_CHAIN_NAMES

#define LIST_CHAIN_NAMES   "main, test, testnet4, signet, regtest"

List of possible chain / network names.

Definition at line 55 of file chainparamsbase.h.

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 30 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 ChainType chain)

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

Port numbers for incoming Tor connections (8334, 18334, 38334, 48334, 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 40 of file chainparamsbase.cpp.

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

◆ SelectBaseParams()

void SelectBaseParams ( ChainType chain)

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

Definition at line 57 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 14 of file chainparamsbase.cpp.

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