aboutsummaryrefslogtreecommitdiff
path: root/src/chainparams.h
diff options
context:
space:
mode:
authorCory Fields <cory-nospam-@coryfields.com>2015-01-23 23:40:50 -0500
committerCory Fields <cory-nospam-@coryfields.com>2015-04-24 14:32:39 -0400
commit739d6155d3bbdeca38bb19daf70e6ff0af022455 (patch)
treeb62a21792562d7864a892f5c5b9ce11fe6befc78 /src/chainparams.h
parent1623f6e3375430b42e7120dc02e8df8c7c22fc16 (diff)
chainparams: use SeedSpec6's rather than CAddress's for fixed seeds
This negates the need for CAddress here at all
Diffstat (limited to 'src/chainparams.h')
-rw-r--r--src/chainparams.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/chainparams.h b/src/chainparams.h
index 5e974123dc..bf76eb110a 100644
--- a/src/chainparams.h
+++ b/src/chainparams.h
@@ -19,6 +19,12 @@ struct CDNSSeedData {
CDNSSeedData(const std::string &strName, const std::string &strHost) : name(strName), host(strHost) {}
};
+struct SeedSpec6 {
+ uint8_t addr[16];
+ uint16_t port;
+};
+
+
/**
* CChainParams defines various tweakable parameters of a given instance of the
* Bitcoin system. There are three: the main network on which people trade goods
@@ -67,7 +73,7 @@ public:
std::string NetworkIDString() const { return strNetworkID; }
const std::vector<CDNSSeedData>& DNSSeeds() const { return vSeeds; }
const std::vector<unsigned char>& Base58Prefix(Base58Type type) const { return base58Prefixes[type]; }
- const std::vector<CAddress>& FixedSeeds() const { return vFixedSeeds; }
+ const std::vector<SeedSpec6>& FixedSeeds() const { return vFixedSeeds; }
virtual const Checkpoints::CCheckpointData& Checkpoints() const = 0;
protected:
CChainParams() {}
@@ -83,7 +89,7 @@ protected:
std::vector<unsigned char> base58Prefixes[MAX_BASE58_TYPES];
std::string strNetworkID;
CBlock genesis;
- std::vector<CAddress> vFixedSeeds;
+ std::vector<SeedSpec6> vFixedSeeds;
bool fRequireRPCPassword;
bool fMiningRequiresPeers;
bool fDefaultConsistencyChecks;