7 #ifndef ANONCOIN_CHAIN_PARAMS_H
8 #define ANONCOIN_CHAIN_PARAMS_H
14 #if defined(HAVE_CONFIG_H)
25 #define MESSAGE_START_SIZE 4
37 CDNSSeedData(
const string &strName,
const string &strHost) : name(strName), host(strHost) {}
78 const vector<unsigned char>&
AlertKey()
const {
return vAlertPubKey; }
81 virtual const CBlock& GenesisBlock()
const = 0;
83 const string&
DataDir()
const {
return strDataDir; }
84 virtual Network NetworkID()
const = 0;
86 const vector<CDNSSeedData>&
DNSSeeds()
const {
return vSeeds; }
88 const vector<CDNSSeedData>& i2pDNSSeeds()
const {
return i2pvSeeds; }
91 virtual const vector<CAddress>& FixedSeeds()
const = 0;
106 vector<CDNSSeedData> i2pvSeeds;
108 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
CChainParams defines various tweakable parameters of a given instance of the Anoncoin system...
virtual bool RequireRPCPassword() const
const std::vector< unsigned char > & Base58Prefix(Base58Type type) const
std::string NetworkIDString() 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.
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 CBigNum & ProofOfWorkLimit(MinedWithAlgo mwa=SCRYPT_ANC) const
const uint256 & HashGenesisBlock() const
const MessageStartChars & MessageStart() const
unsigned char MessageStartChars[MESSAGE_START_SIZE]