Replace the ancient (2015) Tor V2 hardcoded seeds with new Tor V3 ones. This needs to be done before 0.22 to make sure onion-only testnet nodes can still connect to the network. Continues #21560.
Ways to test:
- Re-generate
src/chainparamsseeds.h
withcd contrib/seeds && python3 generate-seeds.py . > ../../src/chainparamsseeds.h
, check if git tree stays the same. - Create a new testnet node with
bitcoind -testnet -onlynet=onion -proxy=127.0.0.1:9050
(or delete~/.bitcoin/testnet3/peers.dat
), check if it is able to connect to the network and get blocks. - Check if the addresses are connectable for ex.:
0#!/usr/bin/env python3
1import subprocess
2with open('contrib/seeds/nodes_test.txt') as f:
3 for line in (line for line in (line.rstrip().split('#', 1)[0] for line in f) if line):
4 subprocess.call(["nc", "-v", "-x", "127.0.0.1:9050", "-z"] + line.split(':'))
Thanks to jonatack for providing the list.