HomePhabricator

refactor: move UpdateTip into CChainState

Description

refactor: move UpdateTip into CChainState

Summary:

Makes sense and saves on arguments.

Completes backport of core#22415:
https://github.com/bitcoin/bitcoin/pull/22415/commits/ceb7b35a39145717e2d9d356fd382bd1f95d2a5a

The last (4th) commit is not relevant as we already have a cleaner solution for UpdateMempoolForReorg (see D1667).

Depends on D12230.

Test Plan:

ninja all check-all

Reviewers: #bitcoin_abc, PiRK

Reviewed By: #bitcoin_abc, PiRK

Subscribers: PiRK

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

Details

Provenance
FabienAuthored on Oct 12 2022, 19:32
FabienPushed on Oct 13 2022, 08:27
Reviewer
Restricted Project
Differential Revision
D12231: refactor: move UpdateTip into CChainState
Parents
rABCaa9156b7ef93: refactor: no mempool arg to GetCoinsCacheSizeState
Branches
Unknown
Tags
Unknown