6 #ifndef BITCOIN_CHAIN_PARAMS_H
7 #define BITCOIN_CHAIN_PARAMS_H
16 #define MESSAGE_START_SIZE 4
24 CDNSSeedData(
const string &strName,
const string &strHost) : name(strName), host(strHost) {}
57 const vector<unsigned char>&
AlertKey()
const {
return vAlertPubKey; }
61 virtual const CBlock& GenesisBlock()
const = 0;
63 const string&
DataDir()
const {
return strDataDir; }
64 virtual Network NetworkID()
const = 0;
65 const vector<CDNSSeedData>&
DNSSeeds()
const {
return vSeeds; }
67 virtual const vector<CAddress>& FixedSeeds()
const = 0;
82 std::vector<unsigned char> base58Prefixes[MAX_BASE58_TYPES];
const vector< CDNSSeedData > & DNSSeeds() const
CDNSSeedData(const string &strName, const string &strHost)
const string & DataDir() const
vector< unsigned char > vAlertPubKey
CBigNum bnProofOfWorkLimit
const CBigNum & ProofOfWorkLimit() const
CChainParams defines various tweakable parameters of a given instance of the Bitcoin system...
virtual bool RequireRPCPassword() const
const std::vector< unsigned char > & Base58Prefix(Base58Type type) const
int GetDefaultPort() const
#define MESSAGE_START_SIZE
C++ wrapper for BIGNUM (OpenSSL bignum)
A CService with information about it as peer.
bool SelectParamsFromCommandLine()
Looks for -regtest or -testnet and then calls SelectParams as appropriate.
int SubsidyHalvingInterval() const
vector< CDNSSeedData > vSeeds
const CChainParams & Params()
Return the currently selected parameters.
const vector< unsigned char > & AlertKey() const
MessageStartChars pchMessageStart
void SelectParams(CChainParams::Network network)
Sets the params returned by Params() to those for the given network.
virtual Network NetworkID() const =0
const uint256 & HashGenesisBlock() const
int nSubsidyHalvingInterval
const MessageStartChars & MessageStart() const
unsigned char MessageStartChars[MESSAGE_START_SIZE]