Bitcoin ABC 0.30.7
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 <chainparamsbase.h>
12#include <consensus/params.h>
13#include <netaddress.h>
14#include <primitives/block.h>
15#include <protocol.h>
16#include <util/hash_type.h>
17
18#include <memory>
19#include <string>
20#include <vector>
21
27std::unique_ptr<const CChainParams> CreateChainParams(const ArgsManager &args,
28 const std::string &chain);
29
34const CChainParams &Params();
35
40void SelectParams(const std::string &chain);
41
42#endif // BITCOIN_CHAINPARAMS_H
void SelectParams(const std::string &chain)
Sets the params returned by Params() to those for the given BIP70 chain name.
Definition: chainparams.cpp:51
std::unique_ptr< const CChainParams > CreateChainParams(const ArgsManager &args, const std::string &chain)
Creates and returns a std::unique_ptr<CChainParams> of the chosen chain.
Definition: chainparams.cpp:32
const CChainParams & Params()
Return the currently selected parameters.
Definition: chainparams.cpp:19
CChainParams defines various tweakable parameters of a given instance of the Bitcoin system.
Definition: chainparams.h:80