Fabcoin Core
0.16.2
P2P Digital Currency
|
#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>
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 CChainParams & | Params () |
Return the currently selected parameters. More... | |
const CChainParams & | GetParams () |
std::unique_ptr< CChainParams > | CreateChainParams (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... | |
#define equihash_parameters_acceptable | ( | N, | |
K | |||
) |
Definition at line 18 of file chainparams.cpp.
std::unique_ptr<CChainParams> CreateChainParams | ( | const std::string & | chain | ) |
Creates and returns a std::unique_ptr<CChainParams> of the chosen chain.
a | std::runtime_error if the chain is not supported. |
Definition at line 530 of file chainparams.cpp.
const CChainParams& GetParams | ( | ) |
Definition at line 525 of file chainparams.cpp.
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.
void SelectParams | ( | const std::string & | chain | ) |
Sets the params returned by Params() to those for the given BIP70 chain name.
std::runtime_error | when the chain is not supported. |
Definition at line 544 of file chainparams.cpp.
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.
const arith_uint256 maxUint = UintToArith256(uint256S("ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff")) |
Main network.
Definition at line 128 of file chainparams.cpp.