![]() |
Master Core
v0.0.9 - 2abfd2849db8ba7a83957c64eb976b406713c123
|
CChainParams defines various tweakable parameters of a given instance of the Bitcoin system. More...
#include <chainparams.h>
Inheritance diagram for CChainParams:
Collaboration diagram for CChainParams:Public Types | |
| enum | Network { MAIN, TESTNET, REGTEST, MAX_NETWORK_TYPES } |
| enum | Base58Type { PUBKEY_ADDRESS, SCRIPT_ADDRESS, SECRET_KEY, EXT_PUBLIC_KEY, EXT_SECRET_KEY, MAX_BASE58_TYPES } |
Public Member Functions | |
| const uint256 & | HashGenesisBlock () const |
| const MessageStartChars & | MessageStart () const |
| const vector< unsigned char > & | AlertKey () const |
| int | GetDefaultPort () const |
| const CBigNum & | ProofOfWorkLimit () const |
| int | SubsidyHalvingInterval () const |
| virtual const CBlock & | GenesisBlock () const =0 |
| virtual bool | RequireRPCPassword () const |
| const string & | DataDir () const |
| virtual Network | NetworkID () const =0 |
| const vector< CDNSSeedData > & | DNSSeeds () const |
| const std::vector< unsigned char > & | Base58Prefix (Base58Type type) const |
| virtual const vector< CAddress > & | FixedSeeds () const =0 |
| int | RPCPort () const |
Protected Member Functions | |
| CChainParams () | |
Protected Attributes | |
| uint256 | hashGenesisBlock |
| MessageStartChars | pchMessageStart |
| vector< unsigned char > | vAlertPubKey |
| int | nDefaultPort |
| int | nRPCPort |
| CBigNum | bnProofOfWorkLimit |
| int | nSubsidyHalvingInterval |
| string | strDataDir |
| vector< CDNSSeedData > | vSeeds |
| std::vector< unsigned char > | base58Prefixes [MAX_BASE58_TYPES] |
CChainParams defines various tweakable parameters of a given instance of the Bitcoin system.
There are three: the main network on which people trade goods and services, the public test network which gets reset from time to time and a regression test mode which is intended for private networks only. It has minimal difficulty to ensure that blocks can be found instantly.
Definition at line 34 of file chainparams.h.
| Enumerator | |
|---|---|
| PUBKEY_ADDRESS | |
| SCRIPT_ADDRESS | |
| SECRET_KEY | |
| EXT_PUBLIC_KEY | |
| EXT_SECRET_KEY | |
| MAX_BASE58_TYPES | |
Definition at line 45 of file chainparams.h.
| Enumerator | |
|---|---|
| MAIN | |
| TESTNET | |
| REGTEST | |
| MAX_NETWORK_TYPES | |
Definition at line 37 of file chainparams.h.
|
inlineprotected |
Definition at line 70 of file chainparams.h.
|
inline |
Definition at line 57 of file chainparams.h.
|
inline |
Definition at line 66 of file chainparams.h.
Referenced by CBitcoinAddress::IsScript(), CBitcoinAddress::IsValid(), and CBitcoinSecret::IsValid().
Here is the caller graph for this function:
|
inline |
Definition at line 63 of file chainparams.h.
Referenced by getblockchaininfo(), and GetDataDir().
Here is the caller graph for this function:
|
inline |
Definition at line 65 of file chainparams.h.
Referenced by ThreadDNSAddressSeed().
Here is the caller graph for this function:
|
pure virtual |
Implemented in CMainParams.
|
pure virtual |
Implemented in CMainParams.
Referenced by mastercore::GetLatestBlockTime(), and InitBlockIndex().
Here is the caller graph for this function:
|
inline |
Definition at line 58 of file chainparams.h.
Referenced by getaddednodeinfo(), ThreadOpenAddedConnections(), and ThreadOpenConnections().
Here is the caller graph for this function:
|
inline |
Definition at line 55 of file chainparams.h.
Referenced by ConnectBlock().
Here is the caller graph for this function:
|
inline |
Definition at line 56 of file chainparams.h.
|
pure virtual |
Implemented in CRegTestParams, CTestNetParams, and CMainParams.
Referenced by GetDataDir(), main(), RegTest(), and TestNet().
Here is the caller graph for this function:
|
inline |
Definition at line 59 of file chainparams.h.
Referenced by ComputeMinWork(), and GetNextWorkRequired().
Here is the caller graph for this function:
|
inlinevirtual |
Reimplemented in CRegTestParams.
Definition at line 62 of file chainparams.h.
|
inline |
Definition at line 68 of file chainparams.h.
|
inline |
Definition at line 60 of file chainparams.h.
Referenced by GetBlockValue().
Here is the caller graph for this function:
|
protected |
Definition at line 82 of file chainparams.h.
|
protected |
Definition at line 78 of file chainparams.h.
|
protected |
Definition at line 72 of file chainparams.h.
|
protected |
Definition at line 76 of file chainparams.h.
|
protected |
Definition at line 77 of file chainparams.h.
|
protected |
Definition at line 79 of file chainparams.h.
|
protected |
Definition at line 73 of file chainparams.h.
|
protected |
Definition at line 80 of file chainparams.h.
|
protected |
Definition at line 75 of file chainparams.h.
|
protected |
Definition at line 81 of file chainparams.h.
1.8.8