mirror of
https://github.com/dashpay/dash.git
synced 2024-12-24 19:42:46 +01:00
b8395aa4e6
Don't forget to specify onion_seeds.txt: ``` cd contrib/seeds dash-cli protx list valid 1 > protx.txt ./makeseeds.py protx.txt onion_seeds.txt > nodes_main.txt ./generate-seeds.py . > ../../src/chainparamsseeds.h ``` |
||
---|---|---|
.. | ||
generate-seeds.py | ||
makeseeds.py | ||
nodes_main.txt | ||
nodes_test.txt | ||
onion_seeds.txt | ||
README.md | ||
suspicious_hosts.txt |
Seeds
Utility to generate the seeds.txt list that is compiled into the client (see src/chainparamsseeds.h and other utilities in contrib/seeds).
The seeds compiled into the release are created from the current protx list, like this:
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
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.
Dependencies
Ubuntu:
sudo apt-get install python3-pip
pip3 install dnspython