PRCYCoin  2.0.0.7rc1
P2P Digital Currency
Classes | Functions
chainparamsbase.cpp File Reference
#include "chainparamsbase.h"
#include "util.h"
#include <assert.h>
#include <boost/assign/list_of.hpp>
Include dependency graph for chainparamsbase.cpp:

Go to the source code of this file.

Classes

class  CBaseMainParams
 Main network. More...
 
class  CBaseTestNetParams
 Testnet (v3) More...
 
class  CBaseRegTestParams
 

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: