Bitcoin
|
#include <chainparamsbase.h>
#include <tinyformat.h>
#include <util/system.h>
#include <util/memory.h>
#include <assert.h>
Functions | |
void | SetupChainParamsBaseOptions () |
const CBaseChainParams & | BaseParams () |
std::unique_ptr< CBaseChainParams > | CreateBaseChainParams (const std::string &chain) |
void | SelectBaseParams (const std::string &chain) |
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.
std::unique_ptr<CBaseChainParams> CreateBaseChainParams | ( | const std::string & | chain | ) |
Creates and returns a std::unique_ptr<CBaseChainParams> of the chosen chain.
a | std::runtime_error if the chain is not supported. |
void SelectBaseParams | ( | const std::string & | chain | ) |
Sets the params returned by Params() to those for the given network.
void SetupChainParamsBaseOptions | ( | ) |
Set the arguments for chainparams
|
static |