HomePhabricator

Move FindForkInGlobalIndex from BlockManager to CChainState

Description

Move FindForkInGlobalIndex from BlockManager to CChainState

Summary:

The helper was moved in commit b026e318c39f59a06e29f1b25c7f577e01b25ccb,
which also mentioned that it could be moved to CChainState. So do that,
as the functionality is not block-storage related.

This also allows to drop one function argument.

This is a backport of core#23785
https://github.com/bitcoin/bitcoin/pull/23785/commits/fa3d62cf7b3501a056b34c5458c14d2fe6a55bd7

Test Plan: ninja all check-all

Reviewers: #bitcoin_abc, Fabien

Reviewed By: #bitcoin_abc, Fabien

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

Details

Provenance
MarcoFalke <falke.marco@gmail.com>Authored on Nov 23 2021, 17:07
PiRKCommitted on Nov 16 2022, 13:58
PiRKPushed on Nov 16 2022, 13:58
Reviewer
Restricted Project
Differential Revision
D12484: Move FindForkInGlobalIndex from BlockManager to CChainState
Parents
rABC8608818eaa2c: [packages/doc] define and document package rules
Branches
Unknown
Tags
Unknown