Master Core  v0.0.9 - 2abfd2849db8ba7a83957c64eb976b406713c123
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Classes | Macros | Typedefs | Functions
chainparams.h File Reference
#include "bignum.h"
#include "uint256.h"
#include <vector>
+ Include dependency graph for chainparams.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  CDNSSeedData
 
class  CChainParams
 CChainParams defines various tweakable parameters of a given instance of the Bitcoin system. More...
 

Macros

#define MESSAGE_START_SIZE   4
 

Typedefs

typedef unsigned char MessageStartChars[MESSAGE_START_SIZE]
 

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...
 
bool TestNet ()
 
bool RegTest ()
 

Macro Definition Documentation

#define MESSAGE_START_SIZE   4

Typedef Documentation

typedef unsigned char MessageStartChars[MESSAGE_START_SIZE]

Definition at line 17 of file chainparams.h.

Function Documentation

const CChainParams& Params ( )
bool RegTest ( )
inline

Definition at line 105 of file chainparams.h.

References CChainParams::NetworkID(), Params(), and CChainParams::REGTEST.

Referenced by AppInit2(), isNonMainNet(), mastercore_handler_block_begin(), mastercore_init(), and parseTransaction().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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:

bool TestNet ( )
inline

Definition at line 100 of file chainparams.h.

References CChainParams::NetworkID(), Params(), and CChainParams::TESTNET.

Referenced by AcceptBlock(), ComputeMinWork(), getinfo(), getmininginfo(), GetNextWorkRequired(), isNonMainNet(), mastercore_init(), and UpdateTime().

+ Here is the call graph for this function:

+ Here is the caller graph for this function: