Dogecoin Core  1.14.2
P2P Digital Currency
Classes | Functions
chainparams.cpp File Reference
#include "chainparams.h"
#include "consensus/merkle.h"
#include "tinyformat.h"
#include "util.h"
#include "utilstrencodings.h"
#include <assert.h>
#include <boost/assign/list_of.hpp>
#include "chainparamsseeds.h"
Include dependency graph for chainparams.cpp:

Go to the source code of this file.

Classes

class  CMainParams
 Main network. More...
 
class  CTestNetParams
 Testnet (v3) More...
 
class  CRegTestParams
 Regression test. More...
 

Functions

const CChainParamsParams ()
 Return the currently selected parameters. More...
 
CChainParamsParams (const std::string &chain)
 
void SelectParams (const std::string &network)
 Sets the params returned by Params() to those for the given BIP70 chain name. More...
 
void UpdateRegtestBIP9Parameters (Consensus::DeploymentPos d, int64_t nStartTime, int64_t nTimeout)
 Allows modifying the BIP9 regtest parameters. More...
 

Function Documentation

◆ Params() [1/2]

const CChainParams& Params ( )

Return the currently selected parameters.

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

Definition at line 486 of file chainparams.cpp.

◆ Params() [2/2]

CChainParams& Params ( const std::string &  chain)
Returns
CChainParams for the given BIP70 chain name.

Definition at line 505 of file chainparams.cpp.

◆ 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.

Definition at line 517 of file chainparams.cpp.

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

◆ UpdateRegtestBIP9Parameters()

void UpdateRegtestBIP9Parameters ( Consensus::DeploymentPos  d,
int64_t  nStartTime,
int64_t  nTimeout 
)

Allows modifying the BIP9 regtest parameters.

Definition at line 523 of file chainparams.cpp.