Inside Bitcoin
Opening the selected file…
Inside Bitcoin
Opening the selected file…
The code behind the network, with room to understand it.
Release published 2026-10-28 · Snapshot fetched 2026-11-01. Latest stable release at fetch time; development branches and Git history are excluded. Only the selected code window and visible folders load here.
1// Copyright (c) 2009-2010 Satoshi Nakamoto2// Copyright (c) 2009-present The Bitcoin Core developers3// Distributed under the MIT software license, see the accompanying4// file COPYING or http://www.opensource.org/licenses/mit-license.php.6#ifndef BITCOIN_CHAINPARAMS_H7#define BITCOIN_CHAINPARAMS_H9#include <kernel/chainparams.h> // IWYU pragma: export11#include <memory>13class ArgsManager;15/**16* Creates and returns a std::unique_ptr<CChainParams> of the chosen chain.17*/18std::unique_ptr<const CChainParams> CreateChainParams(const ArgsManager& args, ChainType chain);20/**21* Return the currently selected parameters. This won't change after app22* startup, except for unit tests.23*/24const CChainParams &Params();26/**27* Sets the params returned by Params() to those for the given chain type.28*/29void SelectParams(ChainType chain);31#endif // BITCOIN_CHAINPARAMS_H