Page MenuHomePhabricator

[avalanche] pass fAutoUnpark to Chainstate::FindMostWorkChain
ClosedPublic

Authored by PiRK on Jun 7 2024, 07:02.

Details

Summary

and fill blocksToReconcile unconditionnaly.

This removes the need for Chainstate::FindMostWorkChain to know anything about avalanche.

In a following diff, the isAvalancheEabled function will be removed in favor of checking whether the avalanche processor pointer is not nullptr, so better to move the checks for avalanche in a scope that already has access to the pointer.

Test Plan

ninja all check-all