mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-08-30 22:51:15 +02:00
Merge #17042: contrib: fix minor typos in makeseeds.py
0b1dcd32bf
contrib: fix minor typos in makeseeds.py (Brian Solon) Pull request description: Fixes minor typos referenced in #17020 ACKs for top commit: laanwj: Thanks. ACK0b1dcd32bf
practicalswift: ACK0b1dcd32bf
Tree-SHA512: 1b67358790b3e80e9229d42e399d9ddb21e9f9a0989e05fa6851925ef76289d123cbf648944ff2b60e1513c755023ddec3a0dd3b9ad26d3e105d1d88c937f968
This commit is contained in:
@@ -123,7 +123,7 @@ def filtermultiport(ips):
|
|||||||
|
|
||||||
def lookup_asn(net, ip):
|
def lookup_asn(net, ip):
|
||||||
'''
|
'''
|
||||||
Look up the asn for an IP (4 or 6) address by querying cymry.com, or None
|
Look up the asn for an IP (4 or 6) address by querying cymru.com, or None
|
||||||
if it could not be found.
|
if it could not be found.
|
||||||
'''
|
'''
|
||||||
try:
|
try:
|
||||||
@@ -187,7 +187,7 @@ def main():
|
|||||||
# Skip entries with invalid address.
|
# Skip entries with invalid address.
|
||||||
ips = [ip for ip in ips if ip is not None]
|
ips = [ip for ip in ips if ip is not None]
|
||||||
print('%s Skip entries with invalid address' % (ip_stats(ips)), file=sys.stderr)
|
print('%s Skip entries with invalid address' % (ip_stats(ips)), file=sys.stderr)
|
||||||
# Skip duplicattes (in case multiple seeds files were concatenated)
|
# Skip duplicates (in case multiple seeds files were concatenated)
|
||||||
ips = dedup(ips)
|
ips = dedup(ips)
|
||||||
print('%s After removing duplicates' % (ip_stats(ips)), file=sys.stderr)
|
print('%s After removing duplicates' % (ip_stats(ips)), file=sys.stderr)
|
||||||
# Skip entries from suspicious hosts.
|
# Skip entries from suspicious hosts.
|
||||||
|
Reference in New Issue
Block a user