#include <chainparamsbase.h>
#include <consensus/params.h>
#include <primitives/block.h>
#include <protocol.h>
#include <memory>
#include <vector>
Go to the source code of this file.
◆ MapCheckpoints
◆ CreateChainParams()
std::unique_ptr<const CChainParams> CreateChainParams |
( |
const std::string & |
chain | ) |
|
Creates and returns a std::unique_ptr<CChainParams> of the chosen chain.
- Returns
- a CChainParams* of the chosen chain.
- Exceptions
-
a | std::runtime_error if the chain is not supported. |
◆ Params()
Return the currently selected parameters. This won't change after app startup, except for unit tests.
◆ SelectParams()
void SelectParams |
( |
const std::string & |
chain | ) |
|
Sets the params returned by Params() to those for the given BIP70 chain name.
- Exceptions
-
std::runtime_error | when the chain is not supported. |