contrib: add torv3 seed nodes for testnet, drop v2 ones #22060

pull laanwj wants to merge 1 commits into bitcoin:master from laanwj:torv3-testnet-hardcoded-seeds changing 2 files +24 −14
  1. laanwj commented at 2:30 pm on May 25, 2021: member

    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 with cd 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.

  2. contrib: add torv3 seed nodes for testnet, drop v2 ones 6fe0516858
  3. laanwj added the label P2P on May 25, 2021
  4. laanwj added this to the milestone 22.0 on May 25, 2021
  5. DrahtBot commented at 5:32 pm on May 25, 2021: member

    The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

    Conflicts

    No conflicts as of last run.

  6. jonatack commented at 7:54 pm on May 25, 2021: member

    ACK 6fe05168587ee818e6ae4483a5984a5893131e44

    Ran python3 generate-seeds.py . > ../../src/chainparamsseeds.h, no change in git tree

     0$ bitcoin-cli -addrinfo
     1{
     2  "addresses_known": {
     3    "ipv4": 0,
     4    "ipv6": 0,
     5    "torv2": 0,
     6    "torv3": 12,
     7    "i2p": 0,
     8    "total": 12
     9  }
    10}
    
     02021-05-25T19:40:06Z Bitcoin Core version v21.99.0-6fe05168587e (debug build)
     1...
     22021-05-25T19:41:27Z Missing or invalid file /home/jon/.bitcoin/testnet3/peers.dat
     32021-05-25T19:41:27Z Recreating peers.dat
     42021-05-25T19:41:27Z tor: Got service ID nyl4eih5tm3oflhusea6u33pvhjokiftv6iecgtmy4cv5c45g75kdfyd, advertising service nyl4eih5tm3oflhusea6u33pvhjokiftv6iecgtmy4cv5c45g75kdfyd.onion:18333
     52021-05-25T19:41:27Z AddLocal(nyl4eih5tm3oflhusea6u33pvhjokiftv6iecgtmy4cv5c45g75kdfyd.onion:18333,4)
     62021-05-25T19:41:27Z Leaving InitialBlockDownload (latching to false)
     72021-05-25T19:41:27Z Loaded 0 addresses from "anchors.dat"
     82021-05-25T19:41:27Z 0 block-relay-only anchors will be tried for connections.
     92021-05-25T19:41:27Z init message: Starting network threads
    102021-05-25T19:41:27Z DNS seeding disabled
    112021-05-25T19:41:27Z addcon thread start
    122021-05-25T19:41:27Z init message: Done loading
    132021-05-25T19:41:27Z msghand thread start
    142021-05-25T19:41:27Z net thread start
    152021-05-25T19:41:27Z opencon thread start
    162021-05-25T19:41:27Z Imported mempool transactions from disk: 43 succeeded, 0 failed, 0 expired, 0 already there, 0 waiting for initial broadcast
    172021-05-25T19:41:27Z loadblk thread exit
    182021-05-25T19:41:28Z Adding fixed seeds as -dnsseed=0, -addnode is not provided and all -seednode(s) attempted
    192021-05-25T19:41:33Z New outbound peer connected: version: 70016, blocks=1976649, peer=0 (outbound-full-relay)
    202021-05-25T19:41:36Z New outbound peer connected: version: 70016, blocks=1976649, peer=1 (outbound-full-relay)
    212021-05-25T19:41:48Z UpdateTip: new best=000000000000001cdb87c5e2564eb312c4b4f81d6a1a3bdda3335555b266e187 height=1976638 version=0x20c00004 log2_work=74.268247 tx=60092273 date='2021-05-25T17:58:50Z' progress=0.999987 cache=0.0MiB(160txo)
    222021-05-25T19:41:49Z New outbound peer connected: version: 70016, blocks=1976649, peer=2 (outbound-full-relay)
    232021-05-25T19:42:03Z New outbound peer connected: version: 70016, blocks=1976649, peer=3 (outbound-full-relay)
    242021-05-25T19:42:32Z New outbound peer connected: version: 70016, blocks=1976649, peer=4 (outbound-full-relay)
    252021-05-25T19:42:38Z New outbound peer connected: version: 70016, blocks=1976649, peer=5 (outbound-full-relay)
    262021-05-25T19:42:44Z New outbound peer connected: version: 70016, blocks=1976649, peer=6 (outbound-full-relay)
    272021-05-25T19:42:56Z New outbound peer connected: version: 70016, blocks=1976649, peer=7 (outbound-full-relay)
    
     0$ ((HEAD detached at origin/pr/22060))$ python3
     1Python 3.9.2 (default, Feb 28 2021, 17:03:44) 
     2[GCC 10.2.1 20210110] on linux
     3Type "help", "copyright", "credits" or "license" for more information.
     4>>> import subprocess
     5>>> with open('contrib/seeds/nodes_test.txt') as f:
     6...     for line in (line for line in (line.rstrip().split('#', 1)[0] for line in f) if line):
     7...         subprocess.call(["nc", "-v", "-x", "127.0.0.1:9050", "-z"] + line.split(':'))
     8... 
     9Connection to 35k2va6vyw4oo5ly2quvcszgdqr56kcnfgcqpnpcffut4jn3mhhwgbid.onion 18333 port [tcp/*] succeeded!
    100
    11Connection to blo2esfvk2rr7sr4jspmu3vt2vpgr5rigflsj645fnku7v4qmljurtid.onion 18333 port [tcp/*] succeeded!
    120
    13Connection to fuckcswupr5rmlvx2kqqrrosxvjyong4hatmuvxsvtcwe4dsh5rus7qd.onion 18333 port [tcp/*] succeeded!
    140
    15Connection to gblylyacjlitd2ywdmo2qqylwtdky7kgeqfvlhiw4zdag4x62tx54hyd.onion 18333 port [tcp/*] succeeded!
    160
    17Connection to gzwpduv33l7yze3bcdzj3inebiyjwddjnwvnjhh5wvnv4me76mjt2kad.onion 18333 port [tcp/*] succeeded!
    180
    19Connection to h3rphzofxzq52tb63mg5f6kc4my3fkcrgh3m5qryeatts43iljbawiid.onion 18333 port [tcp/*] succeeded!
    200
    21Connection to kf4qlhek34b3kgyxyodlmvgm4bxfrjsbjtgayyaiuyhr2eoyfgtm3bad.onion 18333 port [tcp/*] succeeded!
    220
    23Connection to mc7k47ndjvvhcgs54wmjzxvate4rtuybbjoryikdssjhcxlx27psbyqd.onion 18333 port [tcp/*] succeeded!
    240
    25Connection to mrhiniicugfo7mgrwv3wtolk3tptlcw2uq7ih6sq43fa4k4zbilut3yd.onion 18333 port [tcp/*] succeeded!
    260
    27Connection to uiudyws3qizgmepfoh7wwjmsoxoxut4qrmotjjhrn247xnjopr7sfcid.onion 18333 port [tcp/*] succeeded!
    280
    29Connection to zc2wvoqcezcrf64trji6jmhtss34a5ds5ntzdhqegzvex3ynrd7nxcad.onion 18333 port [tcp/*] succeeded!
    300
    31Connection to zd5m3dgdn46naj36pxvvcalfw2paecle6sdxq64ptwxtxjomkywpklqd.onion 18333 port [tcp/*] succeeded!
    320
    33>>> exit()
    
  7. laanwj merged this on May 27, 2021
  8. laanwj closed this on May 27, 2021

  9. gwillen referenced this in commit 306a1dca0b on Jun 1, 2022
  10. DrahtBot locked this on Aug 16, 2022


laanwj DrahtBot jonatack

Labels
P2P

Milestone
22.0


github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2024-12-22 03:12 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me