Changeset View
Changeset View
Standalone View
Standalone View
src/chainparams.h
Show First 20 Lines • Show All 79 Lines • ▼ Show 20 Lines | public: | ||||
uint64_t AssumedChainStateSize() const { | uint64_t AssumedChainStateSize() const { | ||||
return m_assumed_chain_state_size; | return m_assumed_chain_state_size; | ||||
} | } | ||||
/** Whether it is possible to mine blocks on demand (no retargeting) */ | /** Whether it is possible to mine blocks on demand (no retargeting) */ | ||||
bool MineBlocksOnDemand() const { return consensus.fPowNoRetargeting; } | bool MineBlocksOnDemand() const { return consensus.fPowNoRetargeting; } | ||||
/** Return the BIP70 network string (main, test or regtest) */ | /** Return the BIP70 network string (main, test or regtest) */ | ||||
std::string NetworkIDString() const { return strNetworkID; } | std::string NetworkIDString() const { return strNetworkID; } | ||||
/** Return the list of hostnames to look up for DNS seeds */ | /** Return the list of hostnames to look up for DNS seeds */ | ||||
const std::vector<std::string> &DNSSeeds() const { return vSeeds; } | const std::vector<std::string> GetRandomizedDNSSeeds() const; | ||||
deadalnix: This does not belong in the chain params. Make it a free function and keep the params dumb. | |||||
const std::vector<uint8_t> &Base58Prefix(Base58Type type) const { | const std::vector<uint8_t> &Base58Prefix(Base58Type type) const { | ||||
return base58Prefixes[type]; | return base58Prefixes[type]; | ||||
} | } | ||||
const std::string &CashAddrPrefix() const { return cashaddrPrefix; } | const std::string &CashAddrPrefix() const { return cashaddrPrefix; } | ||||
const std::vector<SeedSpec6> &FixedSeeds() const { return vFixedSeeds; } | const std::vector<SeedSpec6> &FixedSeeds() const { return vFixedSeeds; } | ||||
const CCheckpointData &Checkpoints() const { return checkpointData; } | const CCheckpointData &Checkpoints() const { return checkpointData; } | ||||
const ChainTxData &TxData() const { return chainTxData; } | const ChainTxData &TxData() const { return chainTxData; } | ||||
▲ Show 20 Lines • Show All 49 Lines • Show Last 20 Lines |
This does not belong in the chain params. Make it a free function and keep the params dumb.