aboutsummaryrefslogtreecommitdiff
path: root/src/chainparams.h
diff options
context:
space:
mode:
authorJonas Schnelli <dev@jonasschnelli.ch>2016-05-21 23:55:22 +0200
committerJonas Schnelli <dev@jonasschnelli.ch>2016-05-25 14:57:24 +0200
commit2d83013dc54320b3f0c978475517da6156f7b50d (patch)
tree5d5648c31b3093367cfe694eeea072f1895d3662 /src/chainparams.h
parent37f9a1f627c0995d89b62923e75cd092600894f9 (diff)
Add support for dnsseeds with option to filter by servicebits
Diffstat (limited to 'src/chainparams.h')
-rw-r--r--src/chainparams.h7
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 {