Skip to content

Commit f6271a8

Browse files
committed
delete DNS_SEED_PROVIDERS list
1 parent 8e598e9 commit f6271a8

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

check-dnsseeds.py

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,6 @@
1414
NODE_NETWORK_LIMITED = (1 << 10)
1515
NODE_P2P_V2 = (1 << 11)
1616

17-
DNS_SEED_PROVIDERS = [
18-
"seed.bitcoin.sipa.be.",
19-
"dnsseed.bluematt.me.",
20-
"dnsseed.bitcoin.dashjr.org.",
21-
"seed.bitcoinstats.com.",
22-
]
2317

2418
SEEDS_PER_NETWORK={
2519
'mainnet': [
@@ -113,8 +107,9 @@ def check_dns_support(combination_hex, provider):
113107
for combination_hex, service_names in combinations:
114108
print(f" Bit flag (hex): {combination_hex} - Service: {', '.join(service_names)}")
115109

116-
for provider in DNS_SEED_PROVIDERS:
117-
supports_combination = check_dns_support(combination_hex, provider)
118-
print(f" Provider: {provider} - Supports Service: {supports_combination}")
110+
for (network, seeds) in SEEDS_PER_NETWORK.items():
111+
for hostname in seeds:
112+
supports_combination = check_dns_support(combination_hex, hostname)
113+
print(f" Network: {network}, Provider: {hostname} - Supports Service: {supports_combination}")
119114

120115

0 commit comments

Comments
 (0)