6 #ifndef BITCOIN_CHAINPARAMS_H 7 #define BITCOIN_CHAINPARAMS_H 28 const auto& final_checkpoint = mapCheckpoints.rbegin();
29 return final_checkpoint->first ;
88 const std::vector<std::string>&
DNSSeeds()
const {
return vSeeds; }
90 const std::string&
Bech32HRP()
const {
return bech32_hrp; }
91 const std::vector<SeedSpec6>&
FixedSeeds()
const {
return vFixedSeeds; }
104 std::vector<unsigned char> base58Prefixes[MAX_BASE58_TYPES];
136 #endif // BITCOIN_CHAINPARAMS_H const std::vector< std::string > & DNSSeeds() const
Return the list of hostnames to look up for DNS seeds.
std::string NetworkIDString() const
Return the network string.
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<CChainParams> of the chosen chain.
const std::string & Bech32HRP() 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
bool DefaultConsistencyChecks() const
Default value for -checkmempool and -checkblockindex argument.
const CBlock & GenesisBlock() const
CChainParams defines various tweakable parameters of a given instance of the Bitcoin system...
int64_t nTime
UNIX timestamp of last known number of transactions.
const CCheckpointData & Checkpoints() const
CMessageHeader::MessageStartChars pchMessageStart
uint64_t m_assumed_blockchain_size
int64_t nTxCount
total number of transactions between genesis and that timestamp
uint64_t PruneAfterHeight() const
bool MineBlocksOnDemand() const
Whether it is possible to mine blocks on demand (no retargeting)
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 CMessageHeader::MessageStartChars & MessageStart() const
int GetDefaultPort() const
Parameters that influence chain consensus.
bool RequireStandard() const
Policy: Filter transactions that do not match well-defined patterns.
const CChainParams & Params()
Return the currently selected parameters.
const ChainTxData & TxData() const
bool IsTestChain() const
If this chain is exclusively used for testing.
std::vector< SeedSpec6 > vFixedSeeds
uint64_t AssumedBlockchainSize() const
Minimum free space (in GB) needed for data directory.
MapCheckpoints mapCheckpoints
Consensus::Params consensus
const std::vector< SeedSpec6 > & FixedSeeds() const
uint64_t nPruneAfterHeight
const Consensus::Params & GetConsensus() const
CCheckpointData checkpointData
bool IsMockableChain() const
If this chain allows time to be mocked.
bool fDefaultConsistencyChecks
const std::vector< unsigned char > & Base58Prefix(Base58Type type) const