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
PiRKPushed on Jun 7 2024, 18:59
Reviewer
Restricted Project
Differential Revision
D16270: [avalanche] pass the processor to Chainstate::AvalancheFinalizeBlock
Parents
rABC6f63fc475125: [avalanche] initialize the avalanche processor only when avalanche is enabled
Branches
Unknown
Tags
Unknown