Bitcoin ABC 0.30.3
P2P Digital Currency
Public Member Functions | List of all members
CMainParams Class Reference

Main network. More...

Inheritance diagram for CMainParams:
[legend]
Collaboration diagram for CMainParams:
[legend]

Public Member Functions

 CMainParams (const ChainOptions &opts)
 
- Public Member Functions inherited from CChainParams
const Consensus::ParamsGetConsensus () const
 
const CMessageHeader::MessageMagicDiskMagic () const
 
const CMessageHeader::MessageMagicNetMagic () const
 
uint16_t GetDefaultPort () const
 
uint16_t GetDefaultPort (Network net) const
 
uint16_t GetDefaultPort (const std::string &addr) const
 
const CBlockGenesisBlock () const
 
bool DefaultConsistencyChecks () const
 Default value for -checkmempool and -checkblockindex argument. More...
 
bool RequireStandard () const
 Policy: Filter transactions that do not match well-defined patterns. More...
 
bool IsTestChain () const
 If this chain is exclusively used for testing. More...
 
bool IsMockableChain () const
 If this chain allows time to be mocked. More...
 
uint64_t PruneAfterHeight () const
 
uint64_t AssumedBlockchainSize () const
 Minimum free space (in GB) needed for data directory. More...
 
uint64_t AssumedChainStateSize () const
 Minimum free space (in GB) needed for data directory when pruned; Does not include prune target. More...
 
bool MineBlocksOnDemand () const
 Whether it is possible to mine blocks on demand (no retargeting) More...
 
std::string NetworkIDString () const
 Return the BIP70 network string (main, test or regtest) More...
 
const std::vector< uint8_t > & Base58Prefix (Base58Type type) const
 Return the list of hostnames to look up for DNS seeds. More...
 
const std::string & CashAddrPrefix () const
 
const std::vector< SeedSpec6 > & FixedSeeds () const
 
const CCheckpointDataCheckpoints () const
 
const MapAssumeutxoAssumeutxo () const
 Get allowed assumeutxo configuration. More...
 
const ChainTxDataTxData () const
 

Additional Inherited Members

- Public Types inherited from CChainParams
enum  Base58Type {
  PUBKEY_ADDRESS , SCRIPT_ADDRESS , SECRET_KEY , EXT_PUBLIC_KEY ,
  EXT_SECRET_KEY , MAX_BASE58_TYPES
}
 
- Static Public Member Functions inherited from CChainParams
static std::unique_ptr< const CChainParamsRegTest (const ChainOptions &options)
 
static std::unique_ptr< const CChainParamsMain (const ChainOptions &options)
 
static std::unique_ptr< const CChainParamsTestNet (const ChainOptions &options)
 
- Protected Member Functions inherited from CChainParams
 CChainParams ()
 
- Protected Attributes inherited from CChainParams
Consensus::Params consensus
 
CMessageHeader::MessageMagic diskMagic
 
CMessageHeader::MessageMagic netMagic
 
uint16_t nDefaultPort
 
uint64_t nPruneAfterHeight
 
uint64_t m_assumed_blockchain_size
 
uint64_t m_assumed_chain_state_size
 
std::vector< std::string > vSeeds
 
std::vector< uint8_t > base58Prefixes [MAX_BASE58_TYPES]
 
std::string cashaddrPrefix
 
std::string strNetworkID
 
CBlock genesis
 
std::vector< SeedSpec6vFixedSeeds
 
bool fDefaultConsistencyChecks
 
bool fRequireStandard
 
bool m_is_test_chain
 
bool m_is_mockable_chain
 
CCheckpointData checkpointData
 
MapAssumeutxo m_assumeutxo_data
 
ChainTxData chainTxData
 

Detailed Description

Main network.

Definition at line 82 of file chainparams.cpp.

Constructor & Destructor Documentation

◆ CMainParams()

CMainParams::CMainParams ( const ChainOptions opts)
inlineexplicit

The message start string is designed to be unlikely to occur in normal data. The characters are rarely used upper ASCII, not valid as UTF-8, and produce a large 32-bit integer with any alignment.

Definition at line 84 of file chainparams.cpp.

Here is the call graph for this function:

The documentation for this class was generated from the following file: