Bitcoin Core
31.1.0
P2P Digital Currency
Toggle main menu visibility
Loading...
Searching...
No Matches
src
chainparams.h
Go to the documentation of this file.
1
// Copyright (c) 2009-2010 Satoshi Nakamoto
2
// Copyright (c) 2009-present 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
,
ChainType
chain);
19
24
const
CChainParams
&
Params
();
25
29
void
SelectParams
(
ChainType
chain);
30
31
#endif
// BITCOIN_CHAINPARAMS_H
args
ArgsManager & args
Definition
bitcoind.cpp:277
CreateChainParams
std::unique_ptr< const CChainParams > CreateChainParams(const ArgsManager &args, ChainType chain)
Creates and returns a std::unique_ptr<CChainParams> of the chosen chain.
Definition
chainparams.cpp:117
SelectParams
void SelectParams(ChainType chain)
Sets the params returned by Params() to those for the given chain type.
Definition
chainparams.cpp:140
Params
const CChainParams & Params()
Return the currently selected parameters.
Definition
chainparams.cpp:112
ChainType
ChainType
Definition
chaintype.h:11
ArgsManager
Definition
args.h:103
CChainParams
CChainParams defines various tweakable parameters of a given instance of the Bitcoin system.
Definition
chainparams.h:77
chainparams.h
Generated on
for Bitcoin Core by
1.17.0