diff options
author | Jonas Schnelli <dev@jonasschnelli.ch> | 2016-05-21 23:55:22 +0200 |
---|---|---|
committer | Jonas Schnelli <dev@jonasschnelli.ch> | 2016-05-25 14:57:24 +0200 |
commit | 2d83013dc54320b3f0c978475517da6156f7b50d (patch) | |
tree | 5d5648c31b3093367cfe694eeea072f1895d3662 /src/chainparams.h | |
parent | 37f9a1f627c0995d89b62923e75cd092600894f9 (diff) |
Add support for dnsseeds with option to filter by servicebits
Diffstat (limited to 'src/chainparams.h')
-rw-r--r-- | src/chainparams.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/chainparams.h b/src/chainparams.h index 59202f548a..7168daaf43 100644 --- a/src/chainparams.h +++ b/src/chainparams.h @@ -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 { |