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 1414NODE_NETWORK_LIMITED = (1 << 10 )
1515NODE_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
2418SEEDS_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
You can’t perform that action at this time.
0 commit comments