diff options
Diffstat (limited to 'src/chainparams.h')
-rw-r--r-- | src/chainparams.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/chainparams.h b/src/chainparams.h index cb34d068e1..6a65f40f80 100644 --- a/src/chainparams.h +++ b/src/chainparams.h @@ -8,11 +8,11 @@ #include <kernel/chainparams.h> -#include <chainparamsbase.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 <cstdint> @@ -21,12 +21,14 @@ #include <unordered_map> #include <vector> +class ArgsManager; + /** * Creates and returns a std::unique_ptr<CChainParams> of the chosen chain. * @returns a CChainParams* of the chosen chain. * @throws a std::runtime_error if the chain is not supported. */ -std::unique_ptr<const CChainParams> CreateChainParams(const ArgsManager& args, const std::string& chain); +std::unique_ptr<const CChainParams> CreateChainParams(const ArgsManager& args, const ChainType chain); /** * Return the currently selected parameters. This won't change after app @@ -38,6 +40,6 @@ const CChainParams &Params(); * Sets the params returned by Params() to those for the given chain name. * @throws std::runtime_error when the chain is not supported. */ -void SelectParams(const std::string& chain); +void SelectParams(const ChainType chain); #endif // BITCOIN_CHAINPARAMS_H |