HomePhabricator

[avalanche] don't use global g_avalanche in net_processing

Description

[avalanche] don't use global g_avalanche in net_processing

Summary:
This diff is split out of D16224.

Pass the avalanche processor as a const pointer in the PeerManagerImpl constructor.
In most unit tests we currently pass it nullptr, except in processor_tests. This preserves the current behavior.

Depends on D16255

Test Plan: ninja all check-all

Reviewers: #bitcoin_abc, Fabien

Reviewed By: #bitcoin_abc, Fabien

Subscribers: Fabien

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

Details

Provenance
PiRKAuthored on Thu, May 30, 12:33
PiRKPushed on Fri, May 31, 06:15
Reviewer
Restricted Project
Differential Revision
D16256: [avalanche] don't use global g_avalanche in net_processing
Parents
rABC13ae56ec5ede: [avalanche] add additional safety checks before dereferencing g_avalanche in…
Branches
Unknown
Tags
Unknown