2017-02-10 10:16:14 +01:00
|
|
|
# Seeds
|
2013-10-15 23:14:30 -04:00
|
|
|
|
2014-12-23 17:43:32 +01:00
|
|
|
Utility to generate the seeds.txt list that is compiled into the client
|
2015-06-23 21:31:47 +02:00
|
|
|
(see [src/chainparamsseeds.h](/src/chainparamsseeds.h) and other utilities in [contrib/seeds](/contrib/seeds)).
|
2013-01-29 22:17:56 -05:00
|
|
|
|
2017-02-10 10:58:17 +01:00
|
|
|
Be sure to update `PATTERN_AGENT` in `makeseeds.py` to include the current version,
|
2023-07-26 14:21:21 -03:00
|
|
|
and remove old versions as necessary (at a minimum when SeedsServiceFlags()
|
2017-10-19 17:32:33 -04:00
|
|
|
changes its default return value, as those are the services which seeds are added
|
|
|
|
to addrman with).
|
2017-02-10 10:58:17 +01:00
|
|
|
|
2022-04-15 17:14:40 +02:00
|
|
|
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:
|
2016-01-25 16:14:14 +01:00
|
|
|
|
2023-04-18 09:39:11 -07:00
|
|
|
```
|
|
|
|
curl https://bitcoin.sipa.be/seeds.txt.gz | gzip -dc > seeds_main.txt
|
|
|
|
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
|
|
|
|
cat nodes_main_manual.txt >> nodes_main.txt
|
|
|
|
python3 generate-seeds.py . > ../../src/chainparamsseeds.h
|
|
|
|
```
|