Skip to content

Commit

Permalink
Merge bitcoin#24864: contrib: Use asmap for ASN lookup in makeseeds
Browse files Browse the repository at this point in the history
  • Loading branch information
laanwj authored and jagdeep sidhu committed Jun 17, 2022
1 parent a4ea401 commit 3cdf40d
Show file tree
Hide file tree
Showing 4 changed files with 852 additions and 54 deletions.
1 change: 1 addition & 0 deletions contrib/seeds/.gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
seeds_main.txt
asmap-filled.dat
21 changes: 6 additions & 15 deletions contrib/seeds/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,11 @@ and remove old versions as necessary (at a minimum when GetDesirableServiceFlags
changes its default return value, as those are the services which seeds are added
to addrman with).

The seeds compiled into the release are created from sipa's DNS seed data, like this:
The seeds compiled into the release are created from sipa's DNS seed and AS map
data. Run the following commands from the `/contrib/seeds` directory:

curl -s http://syscoin.sipa.be/seeds.txt.gz | gzip -dc > seeds_main.txt
python3 makeseeds.py < seeds_main.txt > nodes_main.txt
curl https://bitcoin.sipa.be/seeds.txt.gz | gzip -dc > seeds_main.txt
curl https://bitcoin.sipa.be/asmap-filled.dat > asmap-filled.dat
python3 makeseeds.py -a asmap-filled.dat < seeds_main.txt > nodes_main.txt
cat nodes_main_manual.txt >> nodes_main.txt
python3 generate-seeds.py . > ../../src/chainparamsseeds.h

## Dependencies

Ubuntu, Debian:

sudo apt-get install python3-dnspython

and/or for other operating systems:

pip install dnspython

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

0 comments on commit 3cdf40d

Please sign in to comment.