Raven Core  3.0.0
P2P Digital Currency
Classes | Functions | Variables
chainparams.cpp File Reference
#include "chainparams.h"
#include "consensus/merkle.h"
#include "tinyformat.h"
#include "util.h"
#include "utilstrencodings.h"
#include "arith_uint256.h"
#include <assert.h>
#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 (v6) More...
 
class  CRegTestParams
 Regression test. More...
 

Functions

const CChainParamsParams ()
 Return the currently selected parameters. More...
 
std::unique_ptr< CChainParamsCreateChainParams (const std::string &chain)
 Creates and returns a std::unique_ptr<CChainParams> of the chosen chain. More...
 
void SelectParams (const std::string &network)
 Sets the params returned by Params() to those for the given BIP70 chain name. More...
 
void UpdateVersionBitsParameters (Consensus::DeploymentPos d, int64_t nStartTime, int64_t nTimeout)
 Allows modifying the Version Bits regtest parameters. More...
 
void TurnOffSegwit ()
 
void TurnOffCSV ()
 
void TurnOffBIP34 ()
 
void TurnOffBIP65 ()
 
void TurnOffBIP66 ()
 

Variables

double algoHashTotal [16]
 
int algoHashHits [16]
 

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 655 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 650 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 666 of file chainparams.cpp.

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

◆ TurnOffBIP34()

void TurnOffBIP34 ( )

Definition at line 685 of file chainparams.cpp.

Here is the caller graph for this function:

◆ TurnOffBIP65()

void TurnOffBIP65 ( )

Definition at line 689 of file chainparams.cpp.

Here is the caller graph for this function:

◆ TurnOffBIP66()

void TurnOffBIP66 ( )

Definition at line 693 of file chainparams.cpp.

Here is the caller graph for this function:

◆ TurnOffCSV()

void TurnOffCSV ( )

Definition at line 681 of file chainparams.cpp.

Here is the caller graph for this function:

◆ TurnOffSegwit()

void TurnOffSegwit ( )

Definition at line 677 of file chainparams.cpp.

Here is the caller graph for this function:

◆ UpdateVersionBitsParameters()

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

Allows modifying the Version Bits regtest parameters.

Definition at line 672 of file chainparams.cpp.

Here is the caller graph for this function:

Variable Documentation

◆ algoHashHits

int algoHashHits[16]

Definition at line 13 of file hash.cpp.

◆ algoHashTotal

double algoHashTotal[16]

Definition at line 12 of file hash.cpp.