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
Differential D16270
[avalanche] pass the processor to Chainstate::AvalancheFinalizeBlock PiRK on Jun 4 2024, 10:15. Authored by
Details
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 ninja all check-all
Diff Detail
Event Timeline
Comment Actions rebase on D16313 (now we can rely on the processor pointer to determine if avalanche is enabled)
Comment Actions pass a reference. This happens in a scope in which we have the guarantee that avalanche is initialized. Initialize a couple of processors in tests, where this function is called. |