![]() |
Master Core
v0.0.9 - 49a5c0d97abf09ef2911ddfe8d9551df59f9efd3-dirty
|
#include "chainparams.h"
#include "assert.h"
#include "core.h"
#include "protocol.h"
#include "util.h"
#include <boost/assign/list_of.hpp>
Go to the source code of this file.
Data Structures | |
class | CMainParams |
class | CTestNetParams |
class | CRegTestParams |
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... | |
Variables | |
unsigned int | pnSeed [] |
static CMainParams | mainParams |
static CTestNetParams | testNetParams |
static CRegTestParams | regTestParams |
static CChainParams * | pCurrentParams = &mainParams |
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().
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().
|
static |
Definition at line 182 of file chainparams.cpp.
Referenced by SelectParams().
|
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().
|
static |
Definition at line 251 of file chainparams.cpp.
Referenced by SelectParams().
|
static |
Definition at line 222 of file chainparams.cpp.
Referenced by SelectParams().