Master Core  v0.0.9 - 49a5c0d97abf09ef2911ddfe8d9551df59f9efd3-dirty
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Data Structures | Functions | Variables
chainparams.cpp File Reference
#include "chainparams.h"
#include "assert.h"
#include "core.h"
#include "protocol.h"
#include "util.h"
#include <boost/assign/list_of.hpp>
+ Include dependency graph for chainparams.cpp:

Go to the source code of this file.

Data Structures

class  CMainParams
 
class  CTestNetParams
 
class  CRegTestParams
 

Functions

const CChainParamsParams ()
 Return the currently selected parameters. More...
 
void SelectParams (CChainParams::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...
 

Variables

unsigned int pnSeed []
 
static CMainParams mainParams
 
static CTestNetParams testNetParams
 
static CRegTestParams regTestParams
 
static CChainParamspCurrentParams = &mainParams
 

Function Documentation

const CChainParams& Params ( )
void SelectParams ( CChainParams::Network  network)

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

Definition at line 259 of file chainparams.cpp.

References CChainParams::MAIN, mainParams, CChainParams::REGTEST, regTestParams, CChainParams::TESTNET, and testNetParams.

Referenced by PaymentServer::ipcParseCommandLine(), and SelectParamsFromCommandLine().

+ Here is the caller graph for this function:

bool SelectParamsFromCommandLine ( )

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

Returns false if an invalid combination is given.

Definition at line 276 of file chainparams.cpp.

References GetBoolArg(), CChainParams::MAIN, CChainParams::REGTEST, SelectParams(), and CChainParams::TESTNET.

Referenced by AppInit(), AppInitRPC(), and main().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Variable Documentation

CMainParams mainParams
static

Definition at line 182 of file chainparams.cpp.

Referenced by SelectParams().

CChainParams* pCurrentParams = &mainParams
static

Definition at line 253 of file chainparams.cpp.

Referenced by Params().

unsigned int pnSeed[]

Definition at line 21 of file chainparams.cpp.

Referenced by CMainParams::CMainParams().

CRegTestParams regTestParams
static

Definition at line 251 of file chainparams.cpp.

Referenced by SelectParams().

CTestNetParams testNetParams
static

Definition at line 222 of file chainparams.cpp.

Referenced by SelectParams().