![]() |
PIVX Core
5.6.99
P2P Digital Currency
|
CChainParams defines various tweakable parameters of a given instance of the PIVX system. More...
#include <chainparams.h>
Public Types | |
| enum | Base58Type { PUBKEY_ADDRESS , SCRIPT_ADDRESS , SECRET_KEY , EXT_PUBLIC_KEY , EXT_SECRET_KEY , EXT_COIN_TYPE , STAKING_ADDRESS , EXCHANGE_ADDRESS , MAX_BASE58_TYPES } |
| enum | Bech32Type { SAPLING_PAYMENT_ADDRESS , SAPLING_FULL_VIEWING_KEY , SAPLING_INCOMING_VIEWING_KEY , SAPLING_EXTENDED_SPEND_KEY , SAPLING_EXTENDED_FVK , BLS_SECRET_KEY , BLS_PUBLIC_KEY , MAX_BECH32_TYPES } |
Public Member Functions | |
| virtual | ~CChainParams () |
| const Consensus::Params & | GetConsensus () const |
| const CMessageHeader::MessageStartChars & | MessageStart () const |
| int | GetDefaultPort () const |
| const CBlock & | GenesisBlock () const |
| bool | RequireStandard () const |
| Policy: Filter transactions that do not match well-defined patterns. More... | |
| int | LLMQConnectionRetryTimeout () const |
| How long to wait until we allow retrying of a LLMQ connection More... | |
| bool | IsTestChain () const |
| If this chain is exclusively used for testing. More... | |
| bool | MiningRequiresPeers () const |
| Make miner wait to have peers to avoid wasting work. More... | |
| bool | HeadersFirstSyncingActive () const |
| Headers first syncing is disabled. More... | |
| bool | DefaultConsistencyChecks () const |
| Default value for -checkmempool and -checkblockindex argument. More... | |
| std::string | NetworkIDString () const |
| Return the network string. More... | |
| const std::vector< CDNSSeedData > & | DNSSeeds () const |
| const std::vector< unsigned char > & | Base58Prefix (Base58Type type) const |
| const std::string & | Bech32HRP (Bech32Type type) const |
| const std::vector< uint8_t > & | FixedSeeds () const |
| virtual const CCheckpointData & | Checkpoints () const =0 |
| bool | IsRegTestNet () const |
| bool | IsTestnet () const |
| int | FulfilledRequestExpireTime () const |
| Tier two requests blockage mark expiration time. More... | |
| void | UpdateNetworkUpgradeParameters (Consensus::UpgradeIndex idx, int nActivationHeight) |
Protected Member Functions | |
| CChainParams () | |
Protected Attributes | |
| std::string | strNetworkID |
| CBlock | genesis |
| Consensus::Params | consensus |
| CMessageHeader::MessageStartChars | pchMessageStart |
| int | nDefaultPort |
| std::vector< CDNSSeedData > | vSeeds |
| std::vector< unsigned char > | base58Prefixes [MAX_BASE58_TYPES] |
| std::string | bech32HRPs [MAX_BECH32_TYPES] |
| std::vector< uint8_t > | vFixedSeeds |
| bool | fRequireStandard |
| int | nLLMQConnectionRetryTimeout |
| int | nFulfilledRequestExpireTime |
CChainParams defines various tweakable parameters of a given instance of the PIVX 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 | |
| EXT_COIN_TYPE | |
| STAKING_ADDRESS | |
| EXCHANGE_ADDRESS | |
| MAX_BASE58_TYPES | |
Definition at line 46 of file chainparams.h.
| Enumerator | |
|---|---|
| SAPLING_PAYMENT_ADDRESS | |
| SAPLING_FULL_VIEWING_KEY | |
| SAPLING_INCOMING_VIEWING_KEY | |
| SAPLING_EXTENDED_SPEND_KEY | |
| SAPLING_EXTENDED_FVK | |
| BLS_SECRET_KEY | |
| BLS_PUBLIC_KEY | |
| MAX_BECH32_TYPES | |
Definition at line 59 of file chainparams.h.
|
inlinevirtual |
Definition at line 45 of file chainparams.h.
|
inlineprotected |
Definition at line 106 of file chainparams.h.
|
inline |
Definition at line 93 of file chainparams.h.
|
inline |
Definition at line 94 of file chainparams.h.
|
pure virtual |
Implemented in CRegTestParams, CTestNetParams, and CMainParams.
|
inline |
Default value for -checkmempool and -checkblockindex argument.
Definition at line 88 of file chainparams.h.
|
inline |
Definition at line 92 of file chainparams.h.
|
inline |
Definition at line 95 of file chainparams.h.
|
inline |
Tier two requests blockage mark expiration time.
Definition at line 102 of file chainparams.h.
|
inline |
|
inline |
Definition at line 72 of file chainparams.h.
|
inline |
|
inline |
Headers first syncing is disabled.
Definition at line 86 of file chainparams.h.
|
inline |
Definition at line 98 of file chainparams.h.
|
inline |
If this chain is exclusively used for testing.
Definition at line 82 of file chainparams.h.
|
inline |
Definition at line 99 of file chainparams.h.
|
inline |
How long to wait until we allow retrying of a LLMQ connection
Definition at line 80 of file chainparams.h.
|
inline |
Definition at line 73 of file chainparams.h.
|
inline |
Make miner wait to have peers to avoid wasting work.
Definition at line 84 of file chainparams.h.
|
inline |
Return the network string.
Definition at line 91 of file chainparams.h.
|
inline |
Policy: Filter transactions that do not match well-defined patterns.
Definition at line 78 of file chainparams.h.
| void CChainParams::UpdateNetworkUpgradeParameters | ( | Consensus::UpgradeIndex | idx, |
| int | nActivationHeight | ||
| ) |
|
protected |
Definition at line 114 of file chainparams.h.
|
protected |
Definition at line 115 of file chainparams.h.
|
protected |
Definition at line 110 of file chainparams.h.
|
protected |
Definition at line 117 of file chainparams.h.
|
protected |
Definition at line 109 of file chainparams.h.
|
protected |
Definition at line 112 of file chainparams.h.
|
protected |
Definition at line 121 of file chainparams.h.
|
protected |
Definition at line 120 of file chainparams.h.
|
protected |
Definition at line 111 of file chainparams.h.
|
protected |
Definition at line 108 of file chainparams.h.
|
protected |
Definition at line 116 of file chainparams.h.
|
protected |
Definition at line 113 of file chainparams.h.