Fabcoin Core  0.16.2
P2P Digital Currency
Classes | Macros | Functions | Variables
chainparams.cpp File Reference
#include <chainparams.h>
#include <consensus/merkle.h>
#include <tinyformat.h>
#include <util.h>
#include <utilstrencodings.h>
#include <crypto/equihash.h>
#include <net.h>
#include <validation.h>
#include <assert.h>
#include <chainparamsseeds.h>
Include dependency graph for chainparams.cpp:

Go to the source code of this file.

Classes

class  CMainParams
 
class  CTestNetParams
 Testnet (v3) More...
 
class  CRegTestParams
 Regression test. More...
 
class  CUnitTestParams
 Regression network parameters overwrites for unit testing. More...
 

Macros

#define equihash_parameters_acceptable(N, K)
 

Functions

const CChainParamsParams ()
 Return the currently selected parameters. More...
 
const CChainParamsGetParams ()
 
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...
 

Variables

const arith_uint256 maxUint = UintToArith256(uint256S("ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"))
 Main network. More...
 

Macro Definition Documentation

#define equihash_parameters_acceptable (   N,
 
)
Value:
((CBlockHeader::HEADER_SIZE + equihash_solution_size(N, K))*MAX_HEADERS_RESULTS < \
MAX_PROTOCOL_MESSAGE_LENGTH-1000)
constexpr size_t equihash_solution_size(unsigned int N, unsigned int K)
Definition: equihash.h:159
static const size_t HEADER_SIZE
Definition: block.h:39

Definition at line 18 of file chainparams.cpp.

Function Documentation

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 530 of file chainparams.cpp.

Here is the caller graph for this function:

const CChainParams& GetParams ( )

Definition at line 525 of file chainparams.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

const CChainParams& Params ( )

Return the currently selected parameters.

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

Definition at line 520 of file chainparams.cpp.

Here is the call graph for this function:

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 544 of file chainparams.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

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

Allows modifying the Version Bits regtest parameters.

Definition at line 550 of file chainparams.cpp.

Here is the caller graph for this function:

Variable Documentation

const arith_uint256 maxUint = UintToArith256(uint256S("ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"))

Main network.

Definition at line 128 of file chainparams.cpp.