HomePhabricator

net: improve encapsulation of CNetAddr

Description

net: improve encapsulation of CNetAddr

Summary:

Do not access `CNetAddr::ip` directly from `CService` methods.

This improvement will help later when we change the type of
`CNetAddr::ip` (in the BIP155 implementation).

Backport of core PR19360.

Depends on D9169.

Test Plan:

ninja all check-all

Reviewers: #bitcoin_abc, majcosta

Reviewed By: #bitcoin_abc, majcosta

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

Details

Provenance
Vasil Dimov <vd@FreeBSD.org>Authored on May 13 2020, 16:45
FabienCommitted on Feb 5 2021, 17:31
FabienPushed on Feb 5 2021, 17:33
Reviewer
Restricted Project
Differential Revision
D9171: net: improve encapsulation of CNetAddr
Parents
rABCaefb3d7122ef: Serialization improvements step 6 (all except wallet/gui)
Branches
Unknown
Tags
Unknown