HomePhabricator

[avalanche] Remove getPeerId

Description

[avalanche] Remove getPeerId

Summary:
This accessor does more that its name implies, as it attempts to create a peer if it doesn't exists which makes the API confusing. This was intended to be a test only method, but it sneaked outside of its original scope.

This diff removes getPeerId() and use registerProof() instead when this is the expected behavior. The original behavior is now enforced as test-only by moving it to the friend test class.

Ref T1854.

Test Plan:

ninja all check-all

Reviewers: #bitcoin_abc, deadalnix

Reviewed By: #bitcoin_abc, deadalnix

Subscribers: majcosta

Maniphest Tasks: T1854

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

Details

Provenance
FabienAuthored on Nov 10 2021, 09:33
FabienPushed on Nov 18 2021, 08:20
Reviewer
Restricted Project
Differential Revision
D10440: [avalanche] Remove getPeerId
Parents
rABC7c14889b8db3: [Automated] Update seeds
Branches
Unknown
Tags
Unknown
Tasks
Restricted Maniphest Task