HomePhabricator

[avalanche] initialize avalanche before node.peerman

Description

[avalanche] initialize avalanche before node.peerman

Summary: In a next commit, when g_avalanche is removed, the PeerManager::make() factory will need a pointer to m_node.avalanche. Moving the avalanche initialization before the PeerManager initialization in advance makes the following commit slightly easier to review.

Test Plan: ninja all check-all

Reviewers: #bitcoin_abc, Fabien

Reviewed By: #bitcoin_abc, Fabien

Subscribers: Fabien

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

Details

Provenance
PiRKAuthored on May 27 2024, 09:53
PiRKPushed on Thu, May 30, 13:42
Reviewer
Restricted Project
Differential Revision
D16223: [avalanche] initialize avalanche before node.peerman
Parents
rABCf511f93f63f7: RPC: make RPCResult::MatchesType return useful errors
Branches
Unknown
Tags
Unknown