dash/contrib/seeds
Alexander Block 9378c271b6 Modify makesseeds.py to work with "protx list valid 1" instead of "masternode list (#3235)
* Modify makesseeds.py to work with "protx list valid 1" instead of "masternode list"

This allows better filtering for MN owners with multiple MNs. This commit
also removes some unsupported fields, e.g. "protocol", "lastseen", ...

* Update contrib/seeds/README.md with new instructions
2019-12-10 18:18:44 +03:00
..
generate-seeds.py Merge #9736: Pre-0.14.0 hardcoded seeds update 2018-01-23 09:24:28 +01:00
makeseeds.py Modify makesseeds.py to work with "protx list valid 1" instead of "masternode list (#3235) 2019-12-10 18:18:44 +03:00
nodes_main.txt Update hardcoded seeds (#2429) 2018-11-10 06:29:14 +01:00
nodes_test.txt Update testnet seeds to point to MNs that are on the new chain (#2558) 2018-12-14 16:34:11 +01:00
README.md Modify makesseeds.py to work with "protx list valid 1" instead of "masternode list (#3235) 2019-12-10 18:18:44 +03:00

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 1185193 > protx_list.json
python3 makeseeds.py < protx_list.json > 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-dnspython