 |
Bitcoin Core
22.99.0
P2P Digital Currency
|
Go to the documentation of this file.
6 #ifndef BITCOIN_CHAINPARAMS_H
7 #define BITCOIN_CHAINPARAMS_H
27 return final_checkpoint->first ;
168 #endif // BITCOIN_CHAINPARAMS_H
uint64_t m_assumed_blockchain_size
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.
static constexpr uint16_t I2P_SAM31_PORT
SAM 3.1 and earlier do not support specifying ports and force the port to 0.
bool IsMockableChain() const
If this chain allows time to be mocked.
uint64_t m_assumed_chain_state_size
Holds configuration for use during UTXO snapshot load and validation.
bool IsTestChain() const
If this chain is exclusively used for testing.
CChainParams defines various tweakable parameters of a given instance of the Bitcoin system.
std::vector< std::string > vSeeds
const Consensus::Params & GetConsensus() const
MapCheckpoints mapCheckpoints
CMessageHeader::MessageStartChars pchMessageStart
int64_t nTime
UNIX timestamp of last known number of transactions.
bool fDefaultConsistencyChecks
uint64_t PruneAfterHeight() const
const std::vector< uint8_t > & FixedSeeds() const
Parameters that influence chain consensus.
enum Network GetNetwork() const
void SelectParams(const std::string &chain)
Sets the params returned by Params() to those for the given chain name.
bool SetSpecial(const std::string &addr)
Parse a Tor or I2P address and set this object to it.
uint16_t GetDefaultPort(Network net) const
uint64_t AssumedBlockchainSize() const
Minimum free space (in GB) needed for data directory.
int64_t nTxCount
total number of transactions between genesis and that timestamp
Holds various statistics on transactions within a chain.
const std::vector< unsigned char > & Base58Prefix(Base58Type type) const
std::string NetworkIDString() const
Return the network string.
std::map< int, uint256 > MapCheckpoints
const CBlock & GenesisBlock() const
CCheckpointData checkpointData
double dTxRate
estimated number of transactions per second after that timestamp
const CMessageHeader::MessageStartChars & MessageStart() const
uint64_t AssumedChainStateSize() const
Minimum free space (in GB) needed for data directory when pruned; Does not include prune target.
const std::vector< std::string > & DNSSeeds() const
Return the list of hostnames to look up for DNS seeds.
std::vector< unsigned char > base58Prefixes[MAX_BASE58_TYPES]
const AssumeutxoHash hash_serialized
The expected hash of the deserialized UTXO set.
const CCheckpointData & Checkpoints() const
bool RequireStandard() const
Policy: Filter transactions that do not match well-defined patterns.
const ChainTxData & TxData() const
std::vector< uint8_t > vFixedSeeds
bool MineBlocksOnDemand() const
Whether it is possible to mine blocks on demand (no retargeting)
const unsigned int nChainTx
Used to populate the nChainTx value, which is used during BlockManager::LoadBlockIndex().
Consensus::Params consensus
const CChainParams & Params()
Return the currently selected parameters.
const MapAssumeutxo & Assumeutxo() const
Get allowed assumeutxo configuration.
const std::string & Bech32HRP() const
uint16_t GetDefaultPort(const std::string &addr) const
uint64_t nPruneAfterHeight
AssumeutxoHash(const uint256 &hash)
std::map< int, const AssumeutxoData > MapAssumeutxo
MapAssumeutxo m_assumeutxo_data
bool DefaultConsistencyChecks() const
Default value for -checkmempool and -checkblockindex argument.
uint16_t GetDefaultPort() const