2017-02-11 08:46:00 +01:00
|
|
|
# Seeds
|
2013-10-16 05:14:30 +02: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-30 04:17:56 +01:00
|
|
|
|
2019-12-10 16:18:44 +01:00
|
|
|
The seeds compiled into the release are created from the current protx list, like this:
|
2017-02-11 08:46:00 +01:00
|
|
|
|
2024-02-15 05:31:24 +01:00
|
|
|
```bash
|
|
|
|
dash-cli protx list valid 1 2018966 > protx_list.json
|
|
|
|
|
|
|
|
# Make sure the onion seeds still work!
|
|
|
|
while IFS= read -r line
|
|
|
|
do
|
|
|
|
address=$(echo $line | cut -d':' -f1)
|
|
|
|
port=$(echo $line | cut -d':' -f2)
|
|
|
|
nc -v -x 127.0.0.1:9050 -z $address $port
|
|
|
|
done < "onion_seeds.txt"
|
|
|
|
|
|
|
|
python3 makeseeds.py protx_list.json onion_seeds.txt > nodes_main.txt
|
|
|
|
python3 generate-seeds.py . > ../../src/chainparamsseeds.h
|
|
|
|
```
|
2017-02-11 08:46:00 +01:00
|
|
|
|
2019-12-10 16:18:44 +01:00
|
|
|
Make sure to use a recent block height in the "protx list" call. After updating, create a PR and
|
|
|
|
specify which block height you used so that reviewers can re-run the same commands and verify
|
|
|
|
that the list is as expected.
|
|
|
|
|
2017-02-11 08:46:00 +01:00
|
|
|
## Dependencies
|
|
|
|
|
|
|
|
Ubuntu:
|
2013-01-30 04:17:56 +01:00
|
|
|
|
2020-11-08 15:44:47 +01:00
|
|
|
sudo apt-get install python3-pip
|
|
|
|
pip3 install dnspython
|