6 #ifndef BITCOIN_CHAINPARAMS_H
7 #define BITCOIN_CHAINPARAMS_H
28 const auto& final_checkpoint = mapCheckpoints.rbegin();
29 return final_checkpoint->first ;
136 #endif // BITCOIN_CHAINPARAMS_H
bool MineBlocksOnDemand() const
Whether it is possible to mine blocks on demand (no retargeting)
double dTxRate
estimated number of transactions per second after that timestamp
std::map< int, uint256 > MapCheckpoints
std::unique_ptr< const CChainParams > CreateChainParams(const ArgsManager &args, const std::string &chain)
Creates and returns a std::unique_ptr of the chosen chain.
std::vector< unsigned char > base58Prefixes[MAX_BASE58_TYPES]
const std::vector< std::string > & DNSSeeds() const
Return the list of hostnames to look up for DNS seeds.
const Consensus::Params & GetConsensus() const
uint64_t AssumedChainStateSize() const
Minimum free space (in GB) needed for data directory when pruned; Does not include prune target...
uint64_t m_assumed_chain_state_size
CChainParams defines various tweakable parameters of a given instance of the Bitcoin system...
int64_t nTime
UNIX timestamp of last known number of transactions.
CMessageHeader::MessageStartChars pchMessageStart
const std::vector< unsigned char > & Base58Prefix(Base58Type type) const
uint64_t m_assumed_blockchain_size
int64_t nTxCount
total number of transactions between genesis and that timestamp
std::string NetworkIDString() const
Return the network string.
uint64_t PruneAfterHeight() const
int GetDefaultPort() const
Holds various statistics on transactions within a chain.
void SelectParams(const std::string &chain)
Sets the params returned by Params() to those for the given chain name.
std::vector< std::string > vSeeds
const ChainTxData & TxData() const
const CMessageHeader::MessageStartChars & MessageStart() const
Parameters that influence chain consensus.
const std::string & Bech32HRP() const
bool IsTestChain() const
If this chain is exclusively used for testing.
const CChainParams & Params()
Return the currently selected parameters.
std::vector< SeedSpec6 > vFixedSeeds
MapCheckpoints mapCheckpoints
const CBlock & GenesisBlock() const
Consensus::Params consensus
bool RequireStandard() const
Policy: Filter transactions that do not match well-defined patterns.
uint64_t nPruneAfterHeight
bool DefaultConsistencyChecks() const
Default value for -checkmempool and -checkblockindex argument.
bool IsMockableChain() const
If this chain allows time to be mocked.
CCheckpointData checkpointData
const std::vector< SeedSpec6 > & FixedSeeds() const
const CCheckpointData & Checkpoints() const
bool fDefaultConsistencyChecks
uint64_t AssumedBlockchainSize() const
Minimum free space (in GB) needed for data directory.