File tree Expand file tree Collapse file tree 1 file changed +4
-9
lines changed Expand file tree Collapse file tree 1 file changed +4
-9
lines changed Original file line number Diff line number Diff line change 14
14
NODE_NETWORK_LIMITED = (1 << 10 )
15
15
NODE_P2P_V2 = (1 << 11 )
16
16
17
- DNS_SEED_PROVIDERS = [
18
- "seed.bitcoin.sipa.be." ,
19
- "dnsseed.bluematt.me." ,
20
- "dnsseed.bitcoin.dashjr.org." ,
21
- "seed.bitcoinstats.com." ,
22
- ]
23
17
24
18
SEEDS_PER_NETWORK = {
25
19
'mainnet' : [
@@ -113,8 +107,9 @@ def check_dns_support(combination_hex, provider):
113
107
for combination_hex , service_names in combinations :
114
108
print (f" Bit flag (hex): { combination_hex } - Service: { ', ' .join (service_names )} " )
115
109
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 } " )
119
114
120
115
You can’t perform that action at this time.
0 commit comments