![]() |
BSHA3
0.17.99
P2P Blockchain, based on Bitcoin
|
CChainParams defines various tweakable parameters of a given instance of the Bitcoin system. More...
#include <chainparams.h>
Public Types | |
enum | Base58Type { PUBKEY_ADDRESS, SCRIPT_ADDRESS, SECRET_KEY, EXT_PUBLIC_KEY, EXT_SECRET_KEY, MAX_BASE58_TYPES } |
Public Member Functions | |
const Consensus::Params & | GetConsensus () const |
const CMessageHeader::MessageStartChars & | MessageStart () const |
int | GetDefaultPort () const |
bool | MiningRequiresPeers () const |
const CBlock & | GenesisBlock () const |
bool | DefaultConsistencyChecks () const |
Default value for -checkmempool and -checkblockindex argument. More... | |
bool | RequireStandard () const |
Policy: Filter transactions that do not match well-defined patterns. More... | |
uint64_t | PruneAfterHeight () const |
bool | MineBlocksOnDemand () const |
Make miner stop after a block is found. More... | |
std::string | NetworkIDString () const |
Return the BIP70 network string (main, test or regtest) More... | |
bool | IsFallbackFeeEnabled () const |
Return true if the fallback fee is by default enabled for this network. More... | |
const std::vector< std::string > & | DNSSeeds () const |
Return the list of hostnames to look up for DNS seeds. More... | |
const std::vector< unsigned char > & | Base58Prefix (Base58Type type) const |
const std::string & | Bech32HRP () const |
const std::vector< SeedSpec6 > & | FixedSeeds () const |
const CCheckpointData & | Checkpoints () const |
const ChainTxData & | TxData () const |
void | UpdateVersionBitsParameters (Consensus::DeploymentPos d, int64_t nStartTime, int64_t nTimeout) |
void | TurnOffSegwit () |
void | TurnOffCSV () |
void | TurnOffBIP34 () |
void | TurnOffBIP65 () |
void | TurnOffBIP66 () |
bool | BIP34 () |
bool | BIP65 () |
bool | BIP66 () |
bool | CSVEnabled () const |
Protected Member Functions | |
CChainParams () | |
Protected Attributes | |
Consensus::Params | consensus |
CMessageHeader::MessageStartChars | pchMessageStart |
int | nDefaultPort |
uint64_t | nPruneAfterHeight |
std::vector< std::string > | vSeeds |
std::vector< unsigned char > | base58Prefixes [MAX_BASE58_TYPES] |
std::string | bech32_hrp |
std::string | strNetworkID |
CBlock | genesis |
std::vector< SeedSpec6 > | vFixedSeeds |
bool | fDefaultConsistencyChecks |
bool | fRequireStandard |
bool | fMineBlocksOnDemand |
bool | fMiningRequiresPeers |
CCheckpointData | checkpointData |
ChainTxData | chainTxData |
bool | m_fallback_fee_enabled |
CChainParams defines various tweakable parameters of a given instance of the Bitcoin system.
There are three: the main network on which people trade goods and services, the public test network which gets reset from time to time and a regression test mode which is intended for private networks only. It has minimal difficulty to ensure that blocks can be found instantly.
Definition at line 47 of file chainparams.h.
Enumerator | |
---|---|
PUBKEY_ADDRESS | |
SCRIPT_ADDRESS | |
SECRET_KEY | |
EXT_PUBLIC_KEY | |
EXT_SECRET_KEY | |
MAX_BASE58_TYPES |
Definition at line 50 of file chainparams.h.
|
inlineprotected |
Definition at line 96 of file chainparams.h.
|
inline |
|
inline |
Definition at line 80 of file chainparams.h.
bool CChainParams::BIP34 | ( | ) |
Definition at line 406 of file chainparams.cpp.
bool CChainParams::BIP65 | ( | ) |
Definition at line 410 of file chainparams.cpp.
bool CChainParams::BIP66 | ( | ) |
Definition at line 414 of file chainparams.cpp.
|
inline |
Definition at line 82 of file chainparams.h.
bool CChainParams::CSVEnabled | ( | ) | const |
Definition at line 418 of file chainparams.cpp.
|
inline |
Default value for -checkmempool and -checkblockindex argument.
Definition at line 67 of file chainparams.h.
|
inline |
Return the list of hostnames to look up for DNS seeds.
Definition at line 78 of file chainparams.h.
|
inline |
Definition at line 81 of file chainparams.h.
|
inline |
|
inline |
|
inline |
|
inline |
Return true if the fallback fee is by default enabled for this network.
Definition at line 76 of file chainparams.h.
|
inline |
Definition at line 61 of file chainparams.h.
|
inline |
Make miner stop after a block is found.
In RPC, don't return until nGenProcLimit blocks are generated
Definition at line 72 of file chainparams.h.
|
inline |
Definition at line 64 of file chainparams.h.
|
inline |
Return the BIP70 network string (main, test or regtest)
Definition at line 74 of file chainparams.h.
|
inline |
Definition at line 70 of file chainparams.h.
|
inline |
Policy: Filter transactions that do not match well-defined patterns.
Definition at line 69 of file chainparams.h.
void CChainParams::TurnOffBIP34 | ( | ) |
Definition at line 394 of file chainparams.cpp.
void CChainParams::TurnOffBIP65 | ( | ) |
Definition at line 398 of file chainparams.cpp.
void CChainParams::TurnOffBIP66 | ( | ) |
Definition at line 402 of file chainparams.cpp.
void CChainParams::TurnOffCSV | ( | ) |
Definition at line 390 of file chainparams.cpp.
void CChainParams::TurnOffSegwit | ( | ) |
Definition at line 386 of file chainparams.cpp.
|
inline |
void CChainParams::UpdateVersionBitsParameters | ( | Consensus::DeploymentPos | d, |
int64_t | nStartTime, | ||
int64_t | nTimeout | ||
) |
|
protected |
Definition at line 103 of file chainparams.h.
|
protected |
Definition at line 104 of file chainparams.h.
|
protected |
Definition at line 113 of file chainparams.h.
|
protected |
Definition at line 112 of file chainparams.h.
|
protected |
Definition at line 98 of file chainparams.h.
|
protected |
Definition at line 108 of file chainparams.h.
|
protected |
Definition at line 110 of file chainparams.h.
|
protected |
Definition at line 111 of file chainparams.h.
|
protected |
Definition at line 109 of file chainparams.h.
|
protected |
Definition at line 106 of file chainparams.h.
|
protected |
Definition at line 114 of file chainparams.h.
|
protected |
Definition at line 100 of file chainparams.h.
|
protected |
Definition at line 101 of file chainparams.h.
|
protected |
Definition at line 99 of file chainparams.h.
|
protected |
Definition at line 105 of file chainparams.h.
|
protected |
Definition at line 107 of file chainparams.h.
|
protected |
Definition at line 102 of file chainparams.h.