PIVX Core  5.6.99
P2P Digital Currency
Classes | Typedefs | Functions
chainparams.h File Reference
#include "chainparamsbase.h"
#include "consensus/params.h"
#include "primitives/block.h"
#include "protocol.h"
#include "uint256.h"
#include <memory>
#include <vector>
Include dependency graph for chainparams.h:

Go to the source code of this file.

Classes

struct  CDNSSeedData
 
struct  CCheckpointData
 
class  CChainParams
 CChainParams defines various tweakable parameters of a given instance of the PIVX system. More...
 

Typedefs

typedef std::map< int, uint256MapCheckpoints
 

Functions

std::unique_ptr< CChainParamsCreateChainParams (const std::string &chain)
 Creates and returns a std::unique_ptr<CChainParams> of the chosen chain. More...
 
const CChainParamsParams ()
 Return the currently selected parameters. More...
 
void SelectParams (const std::string &chain)
 Sets the params returned by Params() to those for the given chain name. More...
 
void UpdateNetworkUpgradeParameters (Consensus::UpgradeIndex idx, int nActivationHeight)
 Allows modifying the network upgrade regtest parameters. More...
 

Typedef Documentation

◆ MapCheckpoints

typedef std::map<int, uint256> MapCheckpoints

Definition at line 26 of file chainparams.h.

Function Documentation

◆ CreateChainParams()

std::unique_ptr<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.

Definition at line 672 of file chainparams.cpp.

Here is the caller graph for this function:

◆ Params()

const CChainParams& Params ( )

Return the currently selected parameters.

This won't change after app startup, except for unit tests.

Definition at line 666 of file chainparams.cpp.

◆ SelectParams()

void SelectParams ( const std::string &  chain)

Sets the params returned by Params() to those for the given chain name.

Exceptions
std::runtime_errorwhen the chain is not supported.

Definition at line 683 of file chainparams.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ UpdateNetworkUpgradeParameters()

void UpdateNetworkUpgradeParameters ( Consensus::UpgradeIndex  idx,
int  nActivationHeight 
)

Allows modifying the network upgrade regtest parameters.

Definition at line 689 of file chainparams.cpp.

Here is the caller graph for this function: