HomePhabricator

[Chronik] Add `ChronikBridge::find_fork`, for `CChain::FindFork`

Description

[Chronik] Add ChronikBridge::find_fork, for CChain::FindFork

Summary:
Walks back the chain until it finds a common ancestor.

Depends on D13289.

Test Plan: ninja test_bitcoin && ./src/test/test_bitcoin -t chronikbridge_tests

Reviewers: Fabien, #bitcoin_abc

Reviewed By: Fabien, #bitcoin_abc

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

Details

Provenance
tobias_ruckAuthored on Mar 11 2023, 09:09
tobias_ruckPushed on Mar 13 2023, 11:47
Reviewer
Restricted Project
Differential Revision
D13290: [Chronik] Add `ChronikBridge::find_fork`, for `CChain::FindFork`
Parents
rABCd30c1e02b6c1: [Chronik] Add `get_block_ancestor` for `CBlockIndex::GetAncestor`
Branches
Unknown
Tags
Unknown