Bitcoin ABC 0.26.3
P2P Digital Currency
|
#include <chainparams.h>
#include <common/args.h>
#include <consensus/merkle.h>
#include <currencyunit.h>
#include <logging.h>
#include <tinyformat.h>
#include <cassert>
Go to the source code of this file.
Functions | |
const CChainParams & | Params () |
Return the currently selected parameters. | |
void | ReadChainArgs (const ArgsManager &args, CChainParams::ChainOptions &options) |
std::unique_ptr< const CChainParams > | CreateChainParams (const ArgsManager &args, const std::string &chain) |
Creates and returns a std::unique_ptr<CChainParams> of the chosen chain. | |
void | SelectParams (const std::string &network) |
Sets the params returned by Params() to those for the given BIP70 chain name. | |
Variables | |
static std::unique_ptr< const CChainParams > | globalChainParams |
std::unique_ptr< const CChainParams > CreateChainParams | ( | const ArgsManager & | args, |
const std::string & | chain | ||
) |
Creates and returns a std::unique_ptr<CChainParams> of the chosen chain.
a | std::runtime_error if the chain is not supported. |
Definition at line 32 of file chainparams.cpp.
const CChainParams & Params | ( | ) |
Return the currently selected parameters.
This won't change after app startup, except for unit tests.
Definition at line 19 of file chainparams.cpp.
void ReadChainArgs | ( | const ArgsManager & | args, |
CChainParams::ChainOptions & | options | ||
) |
Definition at line 24 of file chainparams.cpp.
void SelectParams | ( | const std::string & | chain | ) |
Sets the params returned by Params() to those for the given BIP70 chain name.
std::runtime_error | when the chain is not supported. |
Definition at line 51 of file chainparams.cpp.
|
static |
Definition at line 17 of file chainparams.cpp.