HomePhabricator

[Chronik] Add `BlockReader` to read blocks from `Db`

Description

[Chronik] Add BlockReader to read blocks from Db

Summary:
Methods:

  • height for current db block height.
  • tip for latest block.
  • by_height for block by height.

Depends on D11798

Test Plan: ninja check-crates

Reviewers: Fabien, #bitcoin_abc

Reviewed By: Fabien, #bitcoin_abc

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

Details

Provenance
tobias_ruckAuthored on Jul 24 2022, 18:32
tobias_ruckPushed on Jul 25 2022, 09:16
Reviewer
Restricted Project
Differential Revision
D11799: [Chronik] Add `BlockReader` to read blocks from `Db`
Parents
rABC02a5714575bd: [Chronik] Refactor serialization, add `db_serialize` and `db_deserialize`.
Branches
Unknown
Tags
Unknown