![]() |
Dash Core
0.12.2.1
P2P Digital Currency
|
#include <chainparams.h>
Public Types | |
enum | Base58Type { PUBKEY_ADDRESS, SCRIPT_ADDRESS, SECRET_KEY, EXT_PUBLIC_KEY, EXT_SECRET_KEY, MAX_BASE58_TYPES } |
Public Member Functions | |
const Consensus::Params & | GetConsensus () const |
const CMessageHeader::MessageStartChars & | MessageStart () const |
const std::vector< unsigned char > & | AlertKey () const |
int | GetDefaultPort () const |
const CBlock & | GenesisBlock () const |
bool | MiningRequiresPeers () const |
bool | DefaultConsistencyChecks () const |
bool | RequireStandard () const |
int64_t | MaxTipAge () const |
int64_t | DelayGetHeadersTime () const |
uint64_t | PruneAfterHeight () const |
bool | MineBlocksOnDemand () const |
bool | TestnetToBeDeprecatedFieldRPC () const |
std::string | NetworkIDString () const |
const std::vector< CDNSSeedData > & | DNSSeeds () const |
const std::vector< unsigned char > & | Base58Prefix (Base58Type type) const |
int | ExtCoinType () const |
const std::vector< SeedSpec6 > & | FixedSeeds () const |
const CCheckpointData & | Checkpoints () const |
int | PoolMaxTransactions () const |
int | FulfilledRequestExpireTime () const |
std::string | SporkPubKey () const |
Protected Member Functions | |
CChainParams () | |
Protected Attributes | |
Consensus::Params | consensus |
CMessageHeader::MessageStartChars | pchMessageStart |
std::vector< unsigned char > | vAlertPubKey |
Raw pub key bytes for the broadcast alert signing key. More... | |
int | nDefaultPort |
long | nMaxTipAge |
int64_t | nDelayGetHeadersTime |
uint64_t | nPruneAfterHeight |
std::vector< CDNSSeedData > | vSeeds |
std::vector< unsigned char > | base58Prefixes [MAX_BASE58_TYPES] |
int | nExtCoinType |
std::string | strNetworkID |
CBlock | genesis |
std::vector< SeedSpec6 > | vFixedSeeds |
bool | fMiningRequiresPeers |
bool | fDefaultConsistencyChecks |
bool | fRequireStandard |
bool | fMineBlocksOnDemand |
bool | fTestnetToBeDeprecatedFieldRPC |
CCheckpointData | checkpointData |
int | nPoolMaxTransactions |
int | nFulfilledRequestExpireTime |
std::string | strSporkPubKey |
std::string | strMasternodePaymentsPubKey |
CChainParams defines various tweakable parameters of a given instance of the Dash 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 42 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.
|
inlineprotected |
Definition at line 85 of file chainparams.h.
|
inline |
Definition at line 57 of file chainparams.h.
Referenced by ProcessMessage().
|
inline |
Definition at line 77 of file chainparams.h.
Referenced by CBitcoinExtKeyBase< K, Size, Type >::CBitcoinExtKeyBase(), CBitcoinAddress::IsScript(), CBitcoinAddress::IsValid(), and CBitcoinSecret::IsValid().
|
inline |
Definition at line 80 of file chainparams.h.
Referenced by CheckIndexAgainstCheckpoint(), LoadBlockIndexDB(), CWallet::ScanForWalletTransactions(), and UpdateTip().
|
inline |
Default value for -checkmempool and -checkblockindex argument
Definition at line 64 of file chainparams.h.
Referenced by AppInit2().
|
inline |
Definition at line 68 of file chainparams.h.
Referenced by ProcessMessage(), and SendMessages().
|
inline |
Definition at line 76 of file chainparams.h.
Referenced by CConnman::ThreadDNSAddressSeed().
|
inline |
Definition at line 78 of file chainparams.h.
|
inline |
Definition at line 79 of file chainparams.h.
|
inline |
Definition at line 82 of file chainparams.h.
Referenced by CNetFulfilledRequestManager::AddFulfilledRequest().
|
inline |
Definition at line 60 of file chainparams.h.
Referenced by InitBlockIndex().
|
inline |
Definition at line 55 of file chainparams.h.
Referenced by AcceptBlockHeader(), AcceptToMemoryPoolWorker(), ActivateBestChain(), ActivateBestChainStep(), AppInit2(), BitcoinMiner(), CheckBlockHeader(), CheckIndexAgainstCheckpoint(), CMasternodeBroadcast::CheckOutpoint(), CGovernanceManager::CheckPostponedObjects(), ConnectBlock(), ConnectTip(), ContextualCheckBlock(), ContextualCheckBlockHeader(), CreateNewBlock(), DisconnectBlocks(), generate(), getblockchaininfo(), getblocktemplate(), getgovernanceinfo(), GetMasternodePayment(), GetNetworkHashPS(), CSuperblock::GetPaymentsLimit(), HelpMessage(), IsBlockPayeeValid(), IsBlockValueValid(), CTxLockVote::IsExpired(), CTxLockCandidate::IsExpired(), IsInitialBlockDownload(), CSuperblock::IsValidBlockHeight(), CBlockTreeDB::LoadBlockIndexGuts(), LoadExternalBlockFile(), CActiveMasternode::ManageStateLocal(), CGovernanceManager::MasternodeRateCheck(), CZMQPublishRawBlockNotifier::NotifyBlock(), ProcessMessage(), ProcessMessages(), ProcessNewBlock(), SendMessages(), ModalOverlay::tipUpdate(), CGovernanceManager::UpdateCachesAndClean(), BitcoinGUI::updateHeadersSyncProgressLabel(), UpdateTip(), and CVerifyDB::VerifyDB().
|
inline |
Definition at line 58 of file chainparams.h.
Referenced by CMasternodeBroadcast::Create(), CConnman::GetAddedNodeInfo(), CActiveMasternode::ManageStateInitial(), CMasternodeConfig::read(), CMasternodeBroadcast::SimpleCheck(), CConnman::ThreadOpenAddedConnections(), and CConnman::ThreadOpenConnections().
|
inline |
Definition at line 67 of file chainparams.h.
Referenced by IsInitialBlockDownload().
|
inline |
Definition at line 56 of file chainparams.h.
Referenced by AcceptBlock(), CConnman::BeginMessage(), ConnectBlock(), InitBlockIndex(), LoadExternalBlockFile(), and ProcessMessages().
|
inline |
Make miner stop after a block is found. In RPC, don't return until nGenProcLimit blocks are generated
Definition at line 71 of file chainparams.h.
Referenced by BitcoinMiner(), CreateNewBlock(), generate(), setgenerate(), and setmocktime().
|
inline |
Make miner wait to have peers to avoid wasting work
Definition at line 62 of file chainparams.h.
Referenced by BitcoinMiner().
|
inline |
Return the BIP70 network string (main, test or regtest)
Definition at line 75 of file chainparams.h.
Referenced by AppInit2(), CMasternode::IsValidNetAddr(), CMasternodeMan::ProcessMessage(), and PaymentServer::verifyNetwork().
|
inline |
Definition at line 81 of file chainparams.h.
Referenced by CPrivateSendServer::ChargeFees(), and CPrivateSend::GetMaxPoolTransactions().
|
inline |
Definition at line 69 of file chainparams.h.
Referenced by FlushStateToDisk().
|
inline |
Policy: Filter transactions that do not match well-defined patterns
Definition at line 66 of file chainparams.h.
|
inline |
Definition at line 83 of file chainparams.h.
|
inline |
In the future use NetworkIDString() for RPC fields
Definition at line 73 of file chainparams.h.
|
protected |
Definition at line 96 of file chainparams.h.
Referenced by Base58Prefix(), CMainParams::CMainParams(), CRegTestParams::CRegTestParams(), and CTestNetParams::CTestNetParams().
|
protected |
Definition at line 106 of file chainparams.h.
Referenced by Checkpoints(), CMainParams::CMainParams(), CRegTestParams::CRegTestParams(), and CTestNetParams::CTestNetParams().
|
protected |
Definition at line 87 of file chainparams.h.
Referenced by CMainParams::CMainParams(), CRegTestParams::CRegTestParams(), CTestNetParams::CTestNetParams(), and GetConsensus().
|
protected |
Definition at line 102 of file chainparams.h.
Referenced by CMainParams::CMainParams(), CRegTestParams::CRegTestParams(), CTestNetParams::CTestNetParams(), and DefaultConsistencyChecks().
|
protected |
Definition at line 104 of file chainparams.h.
Referenced by CMainParams::CMainParams(), CRegTestParams::CRegTestParams(), CTestNetParams::CTestNetParams(), and MineBlocksOnDemand().
|
protected |
Definition at line 101 of file chainparams.h.
Referenced by CMainParams::CMainParams(), CRegTestParams::CRegTestParams(), CTestNetParams::CTestNetParams(), and MiningRequiresPeers().
|
protected |
Definition at line 103 of file chainparams.h.
Referenced by CMainParams::CMainParams(), CRegTestParams::CRegTestParams(), CTestNetParams::CTestNetParams(), and RequireStandard().
|
protected |
Definition at line 105 of file chainparams.h.
Referenced by CMainParams::CMainParams(), CRegTestParams::CRegTestParams(), CTestNetParams::CTestNetParams(), and TestnetToBeDeprecatedFieldRPC().
|
protected |
Definition at line 99 of file chainparams.h.
Referenced by CMainParams::CMainParams(), CRegTestParams::CRegTestParams(), CTestNetParams::CTestNetParams(), and GenesisBlock().
|
protected |
Definition at line 91 of file chainparams.h.
Referenced by CMainParams::CMainParams(), CRegTestParams::CRegTestParams(), CTestNetParams::CTestNetParams(), and GetDefaultPort().
|
protected |
Definition at line 93 of file chainparams.h.
Referenced by CMainParams::CMainParams(), CRegTestParams::CRegTestParams(), CTestNetParams::CTestNetParams(), and DelayGetHeadersTime().
|
protected |
Definition at line 97 of file chainparams.h.
Referenced by CMainParams::CMainParams(), CRegTestParams::CRegTestParams(), CTestNetParams::CTestNetParams(), and ExtCoinType().
|
protected |
Definition at line 108 of file chainparams.h.
Referenced by CMainParams::CMainParams(), CRegTestParams::CRegTestParams(), CTestNetParams::CTestNetParams(), and FulfilledRequestExpireTime().
|
protected |
Definition at line 92 of file chainparams.h.
Referenced by CMainParams::CMainParams(), CRegTestParams::CRegTestParams(), CTestNetParams::CTestNetParams(), and MaxTipAge().
|
protected |
Definition at line 107 of file chainparams.h.
Referenced by CMainParams::CMainParams(), CTestNetParams::CTestNetParams(), and PoolMaxTransactions().
|
protected |
Definition at line 94 of file chainparams.h.
Referenced by CMainParams::CMainParams(), CRegTestParams::CRegTestParams(), CTestNetParams::CTestNetParams(), and PruneAfterHeight().
|
protected |
Definition at line 88 of file chainparams.h.
Referenced by CMainParams::CMainParams(), CRegTestParams::CRegTestParams(), CTestNetParams::CTestNetParams(), and MessageStart().
|
protected |
Definition at line 110 of file chainparams.h.
|
protected |
Definition at line 98 of file chainparams.h.
Referenced by CMainParams::CMainParams(), CRegTestParams::CRegTestParams(), CTestNetParams::CTestNetParams(), and NetworkIDString().
|
protected |
Definition at line 109 of file chainparams.h.
Referenced by CMainParams::CMainParams(), CTestNetParams::CTestNetParams(), and SporkPubKey().
|
protected |
Raw pub key bytes for the broadcast alert signing key.
Definition at line 90 of file chainparams.h.
Referenced by AlertKey(), CMainParams::CMainParams(), and CTestNetParams::CTestNetParams().
|
protected |
Definition at line 100 of file chainparams.h.
Referenced by CMainParams::CMainParams(), CRegTestParams::CRegTestParams(), CTestNetParams::CTestNetParams(), and FixedSeeds().
|
protected |
Definition at line 95 of file chainparams.h.
Referenced by CMainParams::CMainParams(), CRegTestParams::CRegTestParams(), CTestNetParams::CTestNetParams(), and DNSSeeds().