HomePhabricator

[Chronik] Refactor: Add `QueryBlocks`, instead of using `BlockReader` directly

Description

[Chronik] Refactor: Add QueryBlocks, instead of using BlockReader directly

Summary: Encapsulates what we need to query blocks. This allows us to more easily add more data required for serving blocks, e.g. the current avalanche height.

Test Plan: ninja check-functional

Reviewers: Fabien, #bitcoin_abc

Reviewed By: Fabien, #bitcoin_abc

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

Details

Provenance
tobias_ruckAuthored on Apr 8 2023, 12:11
tobias_ruckPushed on Apr 12 2023, 16:48
Reviewer
Restricted Project
Differential Revision
D13628: [Chronik] Refactor: Add `QueryBlocks`, instead of using `BlockReader` directly
Parents
rABC28ee0a6dab28: [Chronik] Add `/script/:type/:payload/history`
Branches
Unknown
Tags
Unknown