contrib: make-seeds updates for 24.x

This commit is contained in:
Jon Atack 2022-08-23 23:01:12 +02:00
parent 6075a0be3c
commit 7fd9028017

View file

@ -1,5 +1,5 @@
#!/usr/bin/env python3 #!/usr/bin/env python3
# Copyright (c) 2013-2020 The Bitcoin Core developers # Copyright (c) 2013-2022 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying # Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php. # file COPYING or http://www.opensource.org/licenses/mit-license.php.
# #
@ -7,10 +7,10 @@
# #
import argparse import argparse
import collections
import ipaddress import ipaddress
import re import re
import sys import sys
import collections
from typing import List, Dict, Union from typing import List, Dict, Union
from asmap import ASMap, net_to_prefix from asmap import ASMap, net_to_prefix
@ -38,7 +38,8 @@ PATTERN_AGENT = re.compile(
r"0.20.(0|1|2|99)|" r"0.20.(0|1|2|99)|"
r"0.21.(0|1|2|99)|" r"0.21.(0|1|2|99)|"
r"22.(0|99)|" r"22.(0|99)|"
r"23.99" r"23.(0|99)|"
r"24.99"
r")") r")")
def parseline(line: str) -> Union[dict, None]: def parseline(line: str) -> Union[dict, None]: