6 #ifndef BITCOIN_CHAINPARAMS_H
7 #define BITCOIN_CHAINPARAMS_H
void SelectParams(const std::string &chain)
Sets the params returned by Params() to those for the given BIP70 chain name.
std::map< int, uint256 > MapCheckpoints
const CChainParams & Params()
Return the currently selected parameters.
void UpdateRegtestBIP9Parameters(Consensus::DeploymentPos d, int64_t nStartTime, int64_t nTimeout)
Allows modifying the BIP9 regtest parameters.
CChainParams defines various tweakable parameters of a given instance of the Bitcoin system.
bool MiningRequiresPeers() const
Make miner wait to have peers to avoid wasting work.
Consensus::Params * pConsensusRoot
const std::vector< unsigned char > & Base58Prefix(Base58Type type) const
bool DefaultConsistencyChecks() const
Default value for -checkmempool and -checkblockindex argument.
std::string NetworkIDString() const
Return the BIP70 network string (main, test or regtest)
int GetDefaultPort() const
bool RequireStandard() const
Policy: Filter transactions that do not match well-defined patterns.
const ChainTxData & TxData() const
const std::vector< CDNSSeedData > & DNSSeeds() const
const CMessageHeader::MessageStartChars & MessageStart() const
const CCheckpointData & Checkpoints() const
bool fDefaultConsistencyChecks
std::vector< SeedSpec6 > vFixedSeeds
const std::vector< unsigned char > & AlertKey() const
std::vector< unsigned char > base58Prefixes[MAX_BASE58_TYPES]
bool MineBlocksOnDemand() const
Make miner stop after a block is found.
std::vector< CDNSSeedData > vSeeds
Consensus::Params consensus
const Consensus::Params & GetConsensus(uint32_t nTargetHeight) const
bool fMiningRequiresPeers
uint64_t PruneAfterHeight() const
CCheckpointData checkpointData
const std::vector< SeedSpec6 > & FixedSeeds() const
std::vector< unsigned char > vAlertPubKey
Raw pub key bytes for the broadcast alert signing key.
CMessageHeader::MessageStartChars pchMessageStart
const CBlock & GenesisBlock() const
uint64_t nPruneAfterHeight
MapCheckpoints mapCheckpoints
CDNSSeedData(const std::string &strName, const std::string &strHost, bool supportsServiceBitsFilteringIn=false)
bool supportsServiceBitsFiltering
Parameters that influence chain consensus.