Add support for dnsseeds with option to filter by servicebits
This commit is contained in:
committed by
lateminer
parent
be75754cd7
commit
0dd7c98e63
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user