mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-12 15:09:59 +01:00
Add support for dnsseeds with option to filter by servicebits
This commit is contained in:
@@ -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