PRCYCoin  2.0.0.7rc1
P2P Digital Currency
Classes | Functions
chainparamsbase.h File Reference
#include <string>
#include <vector>
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 prcycoin-cli and prcycoind) of a given instance of the Prcycoin system. More...
 

Functions

const CBaseChainParamsBaseParams ()
 Return the currently selected parameters. More...
 
void SelectBaseParams (CBaseChainParams::Network network)
 Sets the params returned by Params() to those for the given network. More...
 
CBaseChainParams::Network NetworkIdFromCommandLine ()
 Looks for -regtest or -testnet and returns the appropriate Network ID. More...
 
bool SelectBaseParamsFromCommandLine ()
 Calls NetworkIdFromCommandLine() and then calls SelectParams as appropriate. More...
 
bool AreBaseParamsConfigured ()
 Return true if SelectBaseParamsFromCommandLine() has been called to select a network. More...
 

Function Documentation

◆ AreBaseParamsConfigured()

bool AreBaseParamsConfigured ( )

Return true if SelectBaseParamsFromCommandLine() has been called to select a network.

Definition at line 108 of file chainparamsbase.cpp.

◆ BaseParams()

const CBaseChainParams& BaseParams ( )

Return the currently selected parameters.

This won't change after app startup outside of the unit tests.

Definition at line 60 of file chainparamsbase.cpp.

Here is the caller graph for this function:

◆ NetworkIdFromCommandLine()

CBaseChainParams::Network NetworkIdFromCommandLine ( )

Looks for -regtest or -testnet and returns the appropriate Network ID.

Returns MAX_NETWORK_TYPES if an invalid combination is given.

Definition at line 84 of file chainparamsbase.cpp.

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

◆ SelectBaseParams()

void SelectBaseParams ( CBaseChainParams::Network  network)

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

Definition at line 66 of file chainparamsbase.cpp.

Here is the caller graph for this function:

◆ SelectBaseParamsFromCommandLine()

bool SelectBaseParamsFromCommandLine ( )

Calls NetworkIdFromCommandLine() and then calls SelectParams as appropriate.

Returns false if an invalid combination is given.

Definition at line 98 of file chainparamsbase.cpp.

Here is the call graph for this function: