6 #ifndef BITCOIN_KERNEL_CHAINPARAMS_H 7 #define BITCOIN_KERNEL_CHAINPARAMS_H 23 #include <unordered_map> 34 return final_checkpoint->first ;
139 std::optional<std::vector<std::string>>
seeds{};
161 static std::unique_ptr<const CChainParams>
RegTest(
const RegTestOptions& options);
162 static std::unique_ptr<const CChainParams>
SigNet(
const SigNetOptions& options);
163 static std::unique_ptr<const CChainParams>
Main();
164 static std::unique_ptr<const CChainParams>
TestNet();
165 static std::unique_ptr<const CChainParams>
TestNet4();
191 #endif // BITCOIN_KERNEL_CHAINPARAMS_H const std::vector< std::string > & DNSSeeds() const
Return the list of hostnames to look up for DNS seeds.
static std::unique_ptr< const CChainParams > TestNet4()
double dTxRate
estimated number of transactions per second after that timestamp
std::unordered_map< Consensus::DeploymentPos, VersionBitsParameters > version_bits_parameters
std::string GetChainTypeString() const
Return the chain type string.
std::vector< uint8_t > vFixedSeeds
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...
std::vector< unsigned char > base58Prefixes[MAX_BASE58_TYPES]
uint64_t m_assumed_chain_state_size
bool DefaultConsistencyChecks() const
Default value for -checkmempool and -checkblockindex argument.
uint256 blockhash
The hash of the base block for this snapshot.
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
static std::unique_ptr< const CChainParams > Main()
static std::unique_ptr< const CChainParams > RegTest(const RegTestOptions &options)
uint16_t GetDefaultPort() const
uint64_t m_assumed_blockchain_size
std::array< uint8_t, 4 > MessageStartChars
uint64_t PruneAfterHeight() const
std::vector< int > GetAvailableSnapshotHeights() const
AssumeutxoHash hash_serialized
The expected hash of the deserialized UTXO set.
bool MineBlocksOnDemand() const
Whether it is possible to mine blocks on demand (no retargeting)
VersionBitsParameters holds activation parameters.
std::optional< AssumeutxoData > AssumeutxoForBlockhash(const uint256 &blockhash) const
Holds various statistics on transactions within a chain.
std::vector< std::string > vSeeds
RegTestOptions holds configurations for creating a regtest CChainParams.
std::optional< std::vector< std::string > > seeds
std::optional< V > FindFirst(const std::vector< V > &vec, const L fnc)
Parameters that influence chain consensus.
SigNetOptions holds configurations for creating a signet CChainParams.
AssumeutxoHash(const uint256 &hash)
ChainType GetChainType() const
Return the chain type.
const ChainTxData & TxData() const
bool IsTestChain() const
If this chain is exclusively used for testing.
std::unordered_map< Consensus::BuriedDeployment, int > activation_heights
uint64_t AssumedBlockchainSize() const
Minimum free space (in GB) needed for data directory.
MapCheckpoints mapCheckpoints
static std::unique_ptr< const CChainParams > SigNet(const SigNetOptions &options)
static std::unique_ptr< const CChainParams > TestNet()
Consensus::Params consensus
uint64_t m_chain_tx_count
Used to populate the m_chain_tx_count value, which is used during BlockManager::LoadBlockIndex().
const MessageStartChars & MessageStart() const
Holds configuration for use during UTXO snapshot load and validation.
std::string ChainTypeToString(ChainType chain)
std::optional< ChainType > GetNetworkForMagic(const MessageStartChars &pchMessageStart)
uint64_t nPruneAfterHeight
const std::vector< uint8_t > & FixedSeeds() const
MessageStartChars pchMessageStart
const Consensus::Params & GetConsensus() const
std::optional< std::vector< uint8_t > > challenge
CCheckpointData checkpointData
uint64_t tx_count
total number of transactions between genesis and that timestamp
std::optional< AssumeutxoData > AssumeutxoForHeight(int height) const
bool IsMockableChain() const
If this chain allows time to be mocked.
int min_activation_height
std::map< int, uint256 > MapCheckpoints
bool fDefaultConsistencyChecks
std::vector< AssumeutxoData > m_assumeutxo_data
const std::vector< unsigned char > & Base58Prefix(Base58Type type) const