HomePhabricator

Only select from addrv2-capable peers for torv3 address relay

Description

Only select from addrv2-capable peers for torv3 address relay

Summary:

When selecting peers to relay an address to, only pick addrv2-capable ones if the address cannot be represented in addr(v1).

Without this I expect that propagation of torv3 addresses over the cleartext network will be very hard for a while.

The parameter is named _addr to prevent a shadow warning (just like PushAddress).

Backport of core#20661.

Ref T1696.

Test Plan:

ninja all check-all

Reviewers: #bitcoin_abc, PiRK

Reviewed By: #bitcoin_abc, PiRK

Maniphest Tasks: T1696

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

Details

Provenance
FabienAuthored on Jan 27 2022, 16:15
FabienPushed on Jan 27 2022, 16:33
Reviewer
Restricted Project
Differential Revision
D10921: Only select from addrv2-capable peers for torv3 address relay
Parents
rABC01468a99ea10: Make tx relay data structure use std::chrono types
Branches
Unknown
Tags
Unknown
Tasks
Restricted Maniphest Task