Add support for dnsseeds with option to filter by servicebits

This commit is contained in:
Jonas Schnelli
2016-05-21 23:55:22 +02:00
parent 37f9a1f627
commit 2d83013dc5
3 changed files with 18 additions and 4 deletions

View File

@@ -13,9 +13,12 @@
#include <vector>
struct CDNSSeedData {
class CDNSSeedData {
public:
std::string name, host;
CDNSSeedData(const std::string &strName, const std::string &strHost) : name(strName), host(strHost) {}
bool supportsServiceBitsFiltering;
std::string getHost(uint64_t requiredServiceBits) const;
CDNSSeedData(const std::string &strName, const std::string &strHost, bool supportsServiceBitsFilteringIn = false) : name(strName), host(strHost), supportsServiceBitsFiltering(supportsServiceBitsFilteringIn) {}
};
struct SeedSpec6 {