HomePhabricator

tor: make a TORv3 hidden service instead of TORv2

Description

tor: make a TORv3 hidden service instead of TORv2

Summary:

TORv2 is deprecated [1], thus whenever we create the hidden service
ourselves create a TORv3 one instead.

[1] https://blog.torproject.org/v2-deprecation-timeline

Completes backport (4/4) of core PR19954:
https://github.com/bitcoin/bitcoin/pull/19954/commits/dcf0cb477699d11afd0ff37c8bfb2b1b4f7f1ee5

Depends on D9200.

Test Plan:

ninja all check-all

./src/bitcoind -listenonion

Check it connects and the onion_v3_private_key is created in the data
dir.

Reviewers: #bitcoin_abc, majcosta

Reviewed By: #bitcoin_abc, majcosta

Differential Revision: https://reviews.bitcoinabc.org/D9201

Details

Provenance
Vasil Dimov <vd@FreeBSD.org>Authored on Sep 14 2020, 12:30
FabienCommitted on Feb 11 2021, 08:28
FabienPushed on Feb 11 2021, 08:30
Reviewer
Restricted Project
Differential Revision
D9201: tor: make a TORv3 hidden service instead of TORv2
Parents
rABC15f4d6097a4a: net: advertise support for ADDRv2 via new message
Branches
Unknown
Tags
Unknown