Skip to content

Commit 04dd1d3

Browse files
committed
contrib: make-seeds updates for 25.x
and make the steps in /contrib/seeds/README.md easier to copy-paste
1 parent f5c8788 commit 04dd1d3

File tree

2 files changed

+11
-8
lines changed

2 files changed

+11
-8
lines changed

contrib/seeds/README.md

+7-5
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,10 @@ to addrman with).
1111
The seeds compiled into the release are created from sipa's DNS seed and AS map
1212
data. Run the following commands from the `/contrib/seeds` directory:
1313

14-
curl https://bitcoin.sipa.be/seeds.txt.gz | gzip -dc > seeds_main.txt
15-
curl https://bitcoin.sipa.be/asmap-filled.dat > asmap-filled.dat
16-
python3 makeseeds.py -a asmap-filled.dat -s seeds_main.txt > nodes_main.txt
17-
cat nodes_main_manual.txt >> nodes_main.txt
18-
python3 generate-seeds.py . > ../../src/chainparamsseeds.h
14+
```
15+
curl https://bitcoin.sipa.be/seeds.txt.gz | gzip -dc > seeds_main.txt
16+
curl https://bitcoin.sipa.be/asmap-filled.dat > asmap-filled.dat
17+
python3 makeseeds.py -a asmap-filled.dat -s seeds_main.txt > nodes_main.txt
18+
cat nodes_main_manual.txt >> nodes_main.txt
19+
python3 generate-seeds.py . > ../../src/chainparamsseeds.h
20+
```

contrib/seeds/makeseeds.py

+4-3
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,10 @@
3737
r"0.19.(0|1|2|99)|"
3838
r"0.20.(0|1|2|99)|"
3939
r"0.21.(0|1|2|99)|"
40-
r"22.(0|99)|"
41-
r"23.(0|99)|"
42-
r"24.99"
40+
r"22.(0|1|99)|"
41+
r"23.(0|1|99)|"
42+
r"24.(0|1|99)|"
43+
r"25.99"
4344
r")")
4445

4546
def parseline(line: str) -> Union[dict, None]:

0 commit comments

Comments
 (0)