 |
PRCYCoin
2.0.0.7rc1
P2P Digital Currency
|
Go to the documentation of this file.
12 #include <boost/assign/list_of.hpp>
62 assert(pCurrentBaseParams);
63 return *pCurrentBaseParams;
70 pCurrentBaseParams = &mainParams;
73 pCurrentBaseParams = &testNetParams;
76 pCurrentBaseParams = ®TestParams;
79 assert(
false &&
"Unimplemented network");
110 return pCurrentBaseParams != NULL;
bool SelectBaseParamsFromCommandLine()
Calls NetworkIdFromCommandLine() and then calls SelectParams as appropriate.
CBaseChainParams::Network NetworkIdFromCommandLine()
Looks for -regtest or -testnet and returns the appropriate Network ID.
CBaseChainParams defines the base parameters (shared between prcycoin-cli and prcycoind) of a given i...
bool GetBoolArg(const std::string &strArg, bool fDefault)
Return boolean argument or default value.
void SelectBaseParams(CBaseChainParams::Network network)
Sets the params returned by Params() to those for the given network.
const CBaseChainParams & BaseParams()
Return the currently selected parameters.
bool AreBaseParamsConfigured()
Return true if SelectBaseParamsFromCommandLine() has been called to select a network.