![]() |
Master Core
v0.0.9 - 2abfd2849db8ba7a83957c64eb976b406713c123
|
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 CChainParams & | Params () |
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 () |
#define MESSAGE_START_SIZE 4 |
Definition at line 16 of file chainparams.h.
Referenced by CMessageHeader::CMessageHeader(), CMessageHeader::IsValid(), LoadExternalBlockFile(), and ProcessMessages().
typedef unsigned char MessageStartChars[MESSAGE_START_SIZE] |
Definition at line 17 of file chainparams.h.
const CChainParams& Params | ( | ) |
Return the currently selected parameters.
This won't change after app startup outside of the unit tests.
Definition at line 255 of file chainparams.cpp.
References pCurrentParams.
Referenced by AcceptBlock(), AcceptToMemoryPool(), CallRPC(), Checkpoints::Checkpoints(), CheckProofOfWork(), CAlert::CheckSignature(), CMessageHeader::CMessageHeader(), ComputeMinWork(), ConnectBlock(), ConnectNode(), CBitcoinAddress::Get(), getaddednodeinfo(), getblockchaininfo(), GetBlockValue(), GetDataDir(), CBitcoinAddress::GetKeyID(), ClientModel::getLastBlockDate(), mastercore::GetLatestBlockTime(), GetListenPort(), ClientModel::getNetworkName(), GetNextWorkRequired(), InitBlockIndex(), CBitcoinAddress::IsScript(), CMessageHeader::IsValid(), CBitcoinAddress::IsValid(), CBitcoinSecret::IsValid(), LoadExternalBlockFile(), main(), ProcessMessages(), CAddrDB::Read(), RegTest(), CBitcoinAddress::Set(), CBitcoinSecret::SetKey(), CBitcoinExtKeyBase< K, Size, Type >::SetKey(), StartRPCThreads(), TestNet(), ThreadDNSAddressSeed(), ThreadOpenAddedConnections(), ThreadOpenConnections(), CAddrDB::Write(), and WriteBlockToDisk().
|
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().
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().
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().
|
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().