![]() |
Bitcoin Core 22.99.0
P2P Digital Currency
|
#include <chainparamsbase.h>#include <consensus/params.h>#include <netaddress.h>#include <primitives/block.h>#include <protocol.h>#include <util/hash_type.h>#include <memory>#include <string>#include <vector>Go to the source code of this file.
Classes | |
| struct | CCheckpointData |
| struct | AssumeutxoHash |
| struct | AssumeutxoData |
| Holds configuration for use during UTXO snapshot load and validation. More... | |
| struct | ChainTxData |
| Holds various statistics on transactions within a chain. More... | |
| class | CChainParams |
| CChainParams defines various tweakable parameters of a given instance of the Bitcoin system. More... | |
Typedefs | |
| typedef std::map< int, uint256 > | MapCheckpoints |
| using | MapAssumeutxo = std::map< int, const AssumeutxoData > |
Functions | |
| 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. More... | |
| const CChainParams & | Params () |
| Return the currently selected parameters. More... | |
| void | SelectParams (const std::string &chain) |
| Sets the params returned by Params() to those for the given chain name. More... | |
| using MapAssumeutxo = std::map<int, const AssumeutxoData> |
Definition at line 51 of file chainparams.h.
| typedef std::map<int, uint256> MapCheckpoints |
Definition at line 20 of file chainparams.h.
| 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.
| a | std::runtime_error if the chain is not supported. |
Definition at line 566 of file chainparams.cpp.
| const CChainParams & Params | ( | ) |
Return the currently selected parameters.
This won't change after app startup, except for unit tests.
Definition at line 561 of file chainparams.cpp.
| void SelectParams | ( | const std::string & | chain | ) |
Sets the params returned by Params() to those for the given chain name.
| std::runtime_error | when the chain is not supported. |
Definition at line 580 of file chainparams.cpp.