![]() |
Bitcoin ABC 0.32.4
P2P Digital Currency
|
#include <kernel/chainparams.h>#include <consensus/params.h>#include <netaddress.h>#include <primitives/block.h>#include <protocol.h>#include <util/chaintype.h>#include <util/hash_type.h>#include <memory>#include <string>#include <vector>Go to the source code of this file.
Functions | |
| std::unique_ptr< const CChainParams > | CreateChainParams (const ArgsManager &args, const ChainType 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 ChainType chain) |
| Sets the params returned by Params() to those for the given BIP70 chain name. More... | |
| std::unique_ptr< const CChainParams > CreateChainParams | ( | const ArgsManager & | args, |
| const ChainType | 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 33 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 21 of file chainparams.cpp.
| void SelectParams | ( | const ChainType | chain | ) |
Sets the params returned by Params() to those for the given BIP70 chain name.
| std::runtime_error | when the chain is not supported. |
Definition at line 50 of file chainparams.cpp.