Bitcoin Core  26.99.0
P2P Digital Currency
chainparams.h
Go to the documentation of this file.
1 // Copyright (c) 2009-2010 Satoshi Nakamoto
2 // Copyright (c) 2009-2021 The Bitcoin Core developers
3 // Distributed under the MIT software license, see the accompanying
4 // file COPYING or http://www.opensource.org/licenses/mit-license.php.
5 
6 #ifndef BITCOIN_CHAINPARAMS_H
7 #define BITCOIN_CHAINPARAMS_H
8 
9 #include <kernel/chainparams.h> // IWYU pragma: export
10 
11 #include <memory>
12 
13 class ArgsManager;
14 
18 std::unique_ptr<const CChainParams> CreateChainParams(const ArgsManager& args, const ChainType chain);
19 
24 const CChainParams &Params();
25 
29 void SelectParams(const ChainType chain);
30 
31 #endif // BITCOIN_CHAINPARAMS_H
ArgsManager & args
Definition: bitcoind.cpp:268
const CChainParams & Params()
Return the currently selected parameters.
void SelectParams(const ChainType chain)
Sets the params returned by Params() to those for the given chain type.
std::unique_ptr< const CChainParams > CreateChainParams(const ArgsManager &args, const ChainType chain)
Creates and returns a std::unique_ptr<CChainParams> of the chosen chain.
ChainType
Definition: chaintype.h:11
CChainParams defines various tweakable parameters of a given instance of the Bitcoin system.
Definition: chainparams.h:81