bitcoin/contrib/seeds
Wladimir J. van der Laan cddcd22ab3
Merge #20288: script, doc: contrib/seeds updates
961f148cb1 doc: update contrib/seeds/README dnspython installation info (Jon Atack)
dd7b5f46d8 script: fix deprecation warning in makeseeds.py (Jon Atack)

Pull request description:

  Seen while reviewing #20237.

  1. Fix a deprecation warning in `contrib/seeds/makeseeds.py`
  ```
      makeseeds.py:139: DeprecationWarning: please use dns.resolver.resolve() instead
        asn = int([x.to_text() for x in dns.resolver.query('.'.join(
  ```
    - Per https://dnspython.readthedocs.io/en/latest/whatsnew.html, `dns.resolver.query()` was deprecated in `dnspython` version 2.0.0.

    - See https://dnspython.readthedocs.io/en/latest/resolver-class.html for more info on the resolver class.

  2. Update the `dnspython` dependency installation instructions in `contrib/seeds/README`

    - The markdown rendering can be seen here: https://github.com/jonatack/bitcoin/tree/contrib-seeds-fixups/contrib/seeds

ACKs for top commit:
  laanwj:
    code review ACK 961f148cb1

Tree-SHA512: f9c4f318a1a0d35b8de147d24b72c534a1f58eece31e7cfa00b4149a63b6a618d8ca0312f52fd8056f3c645cf2ee68574ca02319fddffdad919a70cd33395d33
2020-11-19 10:40:46 +01:00
..
.gitignore contrib: Add new versions to makeseeds.py and update gitignore 2020-10-25 14:08:33 +01:00
generate-seeds.py test/contrib: Fix invalid escapes in regex strings 2019-09-03 14:38:38 -04:00
makeseeds.py Merge #20288: script, doc: contrib/seeds updates 2020-11-19 10:40:46 +01:00
nodes_main.txt net: Hardcoded seeds update for 0.21 2020-10-25 14:25:00 +01:00
nodes_test.txt contrib: Improvements to hardcoded seeds scripts 2015-06-25 08:05:33 +02:00
README.md doc: update contrib/seeds/README dnspython installation info 2020-11-02 20:54:59 +01:00
suspicious_hosts.txt contrib: makeseeds: Read suspicious hosts from a file instead of hardcoding 2020-01-06 19:48:58 -05: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).

Be sure to update PATTERN_AGENT in makeseeds.py to include the current version, 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:

curl -s http://bitcoin.sipa.be/seeds.txt.gz | gzip -dc > seeds_main.txt
python3 makeseeds.py < seeds_main.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.