![]() |
Bitcoin Core 30.99.0
P2P Digital Currency
|
#include <chainparamsbase.h>#include <common/args.h>#include <tinyformat.h>#include <util/chaintype.h>#include <cassert>Go to the source code of this file.
Functions | |
| void | SetupChainParamsBaseOptions (ArgsManager &argsman) |
| Set the arguments for chainparams. More... | |
| const CBaseChainParams & | BaseParams () |
| Return the currently selected parameters. More... | |
| std::unique_ptr< CBaseChainParams > | CreateBaseChainParams (const ChainType chain) |
| Port numbers for incoming Tor connections (8334, 18334, 38334, 48334, 18445) have been chosen arbitrarily to keep ranges of used ports tight. More... | |
| void | SelectBaseParams (const ChainType chain) |
| Sets the params returned by Params() to those for the given chain. More... | |
Variables | |
| static std::unique_ptr< CBaseChainParams > | globalChainBaseParams |
| 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.
| std::unique_ptr< CBaseChainParams > CreateBaseChainParams | ( | const ChainType | 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.
| void SelectBaseParams | ( | const ChainType | chain | ) |
Sets the params returned by Params() to those for the given chain.
Definition at line 57 of file chainparamsbase.cpp.
| void SetupChainParamsBaseOptions | ( | ArgsManager & | argsman | ) |
Set the arguments for chainparams.
Definition at line 14 of file chainparamsbase.cpp.
|
static |
Definition at line 28 of file chainparamsbase.cpp.