Bitcoin
Classes | Typedefs | Functions
chainparams.h File Reference
#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.

Classes

struct  SeedSpec6
 
struct  CCheckpointData
 
struct  ChainTxData
 
class  CChainParams
 

Typedefs

typedef std::map< int, uint256MapCheckpoints
 

Functions

std::unique_ptr< const CChainParamsCreateChainParams (const std::string &chain)
 
const CChainParamsParams ()
 
void SelectParams (const std::string &chain)
 

Typedef Documentation

◆ MapCheckpoints

typedef std::map<int, uint256> MapCheckpoints

Function Documentation

◆ 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
astd::runtime_error if the chain is not supported.

◆ Params()

const CChainParams& 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_errorwhen the chain is not supported.