Bitcoin Core 28.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
13class ArgsManager;
14
18std::unique_ptr<const CChainParams> CreateChainParams(const ArgsManager& args, const ChainType chain);
19
24const CChainParams &Params();
25
29void SelectParams(const ChainType chain);
30
31#endif // BITCOIN_CHAINPARAMS_H
ArgsManager & args
Definition: bitcoind.cpp:277
std::unique_ptr< const CChainParams > CreateChainParams(const ArgsManager &args, const ChainType chain)
Creates and returns a std::unique_ptr<CChainParams> of the chosen chain.
void SelectParams(const ChainType chain)
Sets the params returned by Params() to those for the given chain type.
const CChainParams & Params()
Return the currently selected parameters.
ChainType
Definition: chaintype.h:11
CChainParams defines various tweakable parameters of a given instance of the Bitcoin system.
Definition: chainparams.h:81