HomePhabricator

[avalanche] pass the processor to Chainstate::AvalancheFinalizeBlock

Description

[avalanche] pass the processor to Chainstate::AvalancheFinalizeBlock

Summary:
Pass a reference rather than a pointer, so that this function only ever gets called if there is an avalanche processor initialized.

This concludes the removal of g_avalanche access in Chainstate functions.

Depends on D16313

Test Plan: ninja all check-all

Reviewers: #bitcoin_abc, Fabien

Reviewed By: #bitcoin_abc, Fabien

Subscribers: Fabien

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

Details

Provenance
PiRKAuthored on Jun 4 2024, 09:55
teamcityPushed on Jun 7 2024, 19:02
Parents
rSTAGING6f63fc475125: [avalanche] initialize the avalanche processor only when avalanche is enabled
Branches
Unknown
Tags
Unknown

Event Timeline