contrib: make-seeds updates for 25.x

and make the steps in /contrib/seeds/README.md easier to copy-paste
This commit is contained in:
Jon Atack 2023-04-18 09:39:11 -07:00
parent f5c8788628
commit 04dd1d3926
2 changed files with 11 additions and 8 deletions

View file

@ -11,8 +11,10 @@ to addrman with).
The seeds compiled into the release are created from sipa's DNS seed and AS map The seeds compiled into the release are created from sipa's DNS seed and AS map
data. Run the following commands from the `/contrib/seeds` directory: data. Run the following commands from the `/contrib/seeds` directory:
```
curl https://bitcoin.sipa.be/seeds.txt.gz | gzip -dc > seeds_main.txt curl https://bitcoin.sipa.be/seeds.txt.gz | gzip -dc > seeds_main.txt
curl https://bitcoin.sipa.be/asmap-filled.dat > asmap-filled.dat curl https://bitcoin.sipa.be/asmap-filled.dat > asmap-filled.dat
python3 makeseeds.py -a asmap-filled.dat -s seeds_main.txt > nodes_main.txt python3 makeseeds.py -a asmap-filled.dat -s seeds_main.txt > nodes_main.txt
cat nodes_main_manual.txt >> nodes_main.txt cat nodes_main_manual.txt >> nodes_main.txt
python3 generate-seeds.py . > ../../src/chainparamsseeds.h python3 generate-seeds.py . > ../../src/chainparamsseeds.h
```

View file

@ -37,9 +37,10 @@ PATTERN_AGENT = re.compile(
r"0.19.(0|1|2|99)|" r"0.19.(0|1|2|99)|"
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|1|99)|"
r"23.(0|99)|" r"23.(0|1|99)|"
r"24.99" r"24.(0|1|99)|"
r"25.99"
r")") r")")
def parseline(line: str) -> Union[dict, None]: def parseline(line: str) -> Union[dict, None]: