Bitcoin ABC 0.31.6
P2P Digital Currency
chainparams.h
Go to the documentation of this file.
1// Copyright (c) 2009-2010 Satoshi Nakamoto
2// Copyright (c) 2009-2016 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
10
11#include <consensus/params.h>
12#include <netaddress.h>
13#include <primitives/block.h>
14#include <protocol.h>
15#include <util/chaintype.h>
16#include <util/hash_type.h>
17
18#include <memory>
19#include <string>
20#include <vector>
21
22class ArgsManager;
23
29std::unique_ptr<const CChainParams> CreateChainParams(const ArgsManager &args,
30 const ChainType chain);
31
36const CChainParams &Params();
37
42void SelectParams(const ChainType chain);
43
44#endif // BITCOIN_CHAINPARAMS_H
std::unique_ptr< const CChainParams > CreateChainParams(const ArgsManager &args, const ChainType chain)
Creates and returns a std::unique_ptr<CChainParams> of the chosen chain.
Definition: chainparams.cpp:33
void SelectParams(const ChainType chain)
Sets the params returned by Params() to those for the given BIP70 chain name.
Definition: chainparams.cpp:50
const CChainParams & Params()
Return the currently selected parameters.
Definition: chainparams.cpp:21
ChainType
Definition: chaintype.h:11
CChainParams defines various tweakable parameters of a given instance of the Bitcoin system.
Definition: chainparams.h:86