HomePhabricator

[avalanche] Extend our outbound connections with avalanche enabled peers

Description

[avalanche] Extend our outbound connections with avalanche enabled peers

Summary:
This adds a new AVALANCHE_OUTBOUND connection type which is just a special case of a FULL_OUTBOUND_RELAY peer which also provides the avalanche service. We add an extra 16 outbound slots reserved for these peers, which will be the ones we will be sending the getavaaddr messages to. If avalanche is not enabled these slots are not created and there is no change in behavior. The eviction and replacement mechanism is kept identical to the usual full outbound peers.

Ref T1696.

Depends on D11009.

Test Plan:

ninja check-extended

Reviewers: #bitcoin_abc, tyler-smith

Reviewed By: #bitcoin_abc, tyler-smith

Subscribers: tyler-smith

Maniphest Tasks: T1696

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

Details

Provenance
FabienAuthored on Feb 8 2022, 11:36
FabienPushed on Feb 17 2022, 10:29
Reviewer
Restricted Project
Differential Revision
D11010: [avalanche] Extend our outbound connections with avalanche enabled peers
Parents
rABC7d5702e9fdec: Bump replay protection activation time to Nov. 15. 2022
Branches
Unknown
Tags
Unknown
Tasks
Restricted Maniphest Task