Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions contrib/seeds/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
protx_list.json
asmap-filled.dat
18 changes: 4 additions & 14 deletions contrib/seeds/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,12 @@
Utility to generate the seeds.txt list that is compiled into the client
(see [src/chainparamsseeds.h](/src/chainparamsseeds.h) and other utilities in [contrib/seeds](/contrib/seeds)).

The seeds compiled into the release are created from the current protx list, like this:
The seeds compiled into the release are created from the current protx list and AS map
data, like this:

```bash
dash-cli protx list valid 1 2018966 > protx_list.json
curl https://bitcoin.sipa.be/asmap-filled.dat > asmap-filled.dat

# Make sure the onion seeds still work!
while IFS= read -r line
Expand All @@ -16,22 +18,10 @@ do
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 makeseeds.py -a asmap-filled.dat 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, Debian:

sudo apt-get install python3-dnspython

and/or for other operating systems:

pip3 install dnspython3

See https://dnspython.readthedocs.io/en/latest/installation.html for more information.
Loading
Loading