2017-02-10 06:16:14 -03:00
|
|
|
# Seeds
|
2013-10-16 00:14:30 -03:00
|
|
|
|
2014-12-23 13:43:32 -03:00
|
|
|
Utility to generate the seeds.txt list that is compiled into the client
|
2015-06-23 16:31:47 -03:00
|
|
|
(see [src/chainparamsseeds.h](/src/chainparamsseeds.h) and other utilities in [contrib/seeds](/contrib/seeds)).
|
2013-01-30 00:17:56 -03:00
|
|
|
|
2017-02-10 06:58:17 -03:00
|
|
|
Be sure to update `PATTERN_AGENT` in `makeseeds.py` to include the current version,
|
2018-08-13 10:11:24 -03:00
|
|
|
and remove old versions as necessary (at a minimum when GetDesirableServiceFlags
|
2017-10-19 18:32:33 -03:00
|
|
|
changes its default return value, as those are the services which seeds are added
|
|
|
|
to addrman with).
|
2017-02-10 06:58:17 -03:00
|
|
|
|
2016-01-25 12:14:14 -03:00
|
|
|
The seeds compiled into the release are created from sipa's DNS seed data, like this:
|
|
|
|
|
2017-06-01 04:38:29 -04:00
|
|
|
curl -s http://bitcoin.sipa.be/seeds.txt.gz | gzip -dc > seeds_main.txt
|
2017-02-10 06:16:14 -03:00
|
|
|
python3 makeseeds.py < seeds_main.txt > nodes_main.txt
|
|
|
|
python3 generate-seeds.py . > ../../src/chainparamsseeds.h
|
2013-01-30 00:17:56 -03:00
|
|
|
|
2017-02-10 06:16:14 -03:00
|
|
|
## Dependencies
|
|
|
|
|
2020-11-02 16:13:48 -03:00
|
|
|
Ubuntu, Debian:
|
2017-02-10 06:16:14 -03:00
|
|
|
|
|
|
|
sudo apt-get install python3-dnspython
|
2020-11-02 16:13:48 -03:00
|
|
|
|
|
|
|
and/or for other operating systems:
|
|
|
|
|
|
|
|
pip install dnspython
|
|
|
|
|
|
|
|
See https://dnspython.readthedocs.io/en/latest/installation.html for more information.
|