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

Go to the source code of this file.

Classes

class  CMainParams
 
class  CTestNetParams
 Testnet (v3) More...
 
class  CRegTestParams
 Regression test. More...
 

Functions

const CChainParamsParams ()
 Return the currently selected parameters. More...
 
CChainParamsParams (CBaseChainParams::Network network)
 Return parameters for the given network. More...
 
void SelectParams (CBaseChainParams::Network network)
 Sets the params returned by Params() to those for the given network. More...
 
bool SelectParamsFromCommandLine ()
 Looks for -regtest or -testnet and then calls SelectParams as appropriate. More...
 

Function Documentation

◆ Params() [1/2]

const CChainParams& Params ( )

Return the currently selected parameters.

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

Definition at line 463 of file chainparams.cpp.

◆ Params() [2/2]

Return parameters for the given network.

Definition at line 469 of file chainparams.cpp.

◆ SelectParams()

void SelectParams ( CBaseChainParams::Network  network)

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

Definition at line 484 of file chainparams.cpp.

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

◆ SelectParamsFromCommandLine()

bool SelectParamsFromCommandLine ( )

Looks for -regtest or -testnet and then calls SelectParams as appropriate.

Returns false if an invalid combination is given.

Definition at line 490 of file chainparams.cpp.

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