6 #ifndef FABCOIN_CHAINPARAMS_H 7 #define FABCOIN_CHAINPARAMS_H 20 CDNSSeedData(
const std::string &strHost,
bool supportsServiceBitsFilteringIn) : host(strHost), supportsServiceBitsFiltering(supportsServiceBitsFilteringIn) {}
72 unsigned int EquihashN(uint32_t nHeight = 0)
const {
return (nHeight < consensus.EquihashFABHeight) ? nEquihashN : 184; }
73 unsigned int EquihashK(uint32_t nHeight = 0)
const {
return (nHeight < consensus.EquihashFABHeight) ? nEquihashK : 7; }
74 int64_t
GetnPowTargetSpacing( uint32_t nHeight = 0 )
const {
return (nHeight < consensus.EquihashFABHeight) ? consensus.nPowTargetSpacing : 2* consensus.nPowTargetSpacing; }
79 const std::vector<CDNSSeedData>&
DNSSeeds()
const {
return vSeeds; }
81 const std::vector<SeedSpec6>&
FixedSeeds()
const {
return vFixedSeeds; }
92 unsigned int nEquihashN = 0;
93 unsigned int nEquihashK = 0;
95 std::vector<unsigned char> base58Prefixes[MAX_BASE58_TYPES];
131 #endif // FABCOIN_CHAINPARAMS_H
bool MineBlocksOnDemand() const
Make miner stop after a block is found.
std::map< int, uint256 > MapCheckpoints
unsigned int EquihashN(uint32_t nHeight=0) const
const Consensus::Params & GetConsensus() const
const CChainParams & GetParams()
CChainParams defines various tweakable parameters of a given instance of the Fabcoin system...
CMessageHeader::MessageStartChars pchMessageStart
const std::vector< unsigned char > & Base58Prefix(Base58Type type) const
int64_t GetnPowTargetSpacing(uint32_t nHeight=0) const
std::string NetworkIDString() const
Return the BIP70 network string (main, test or regtest)
bool supportsServiceBitsFiltering
uint64_t PruneAfterHeight() const
int GetDefaultPort() const
void SelectParams(const std::string &chain)
Sets the params returned by Params() to those for the given BIP70 chain name.
const ChainTxData & TxData() const
const CMessageHeader::MessageStartChars & MessageStart() const
Parameters that influence chain consensus.
std::vector< CDNSSeedData > vSeeds
void UpdateVersionBitsParameters(Consensus::DeploymentPos d, int64_t nStartTime, int64_t nTimeout)
Allows modifying the Version Bits regtest parameters.
const CChainParams & Params()
Return the currently selected parameters.
std::vector< SeedSpec6 > vFixedSeeds
MapCheckpoints mapCheckpoints
PlatformStyle::TableColorType type
const CBlock & GenesisBlock() const
Consensus::Params consensus
bool fMiningRequiresPeers
bool RequireStandard() const
Policy: Filter transactions that do not match well-defined patterns.
uint64_t nPruneAfterHeight
bool DefaultConsistencyChecks() const
Default value for -checkmempool and -checkblockindex argument.
bool MiningRequiresPeers() const
Make miner wait to have peers to avoid wasting work.
CCheckpointData checkpointData
std::unique_ptr< CChainParams > CreateChainParams(const std::string &chain)
Creates and returns a std::unique_ptr<CChainParams> of the chosen chain.
const std::vector< CDNSSeedData > & DNSSeeds() const
CDNSSeedData(const std::string &strHost, bool supportsServiceBitsFilteringIn)
unsigned int EquihashK(uint32_t nHeight=0) const
const std::vector< SeedSpec6 > & FixedSeeds() const
const CCheckpointData & Checkpoints() const
bool fDefaultConsistencyChecks