Page MenuHomePhabricator

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

Authored by tobias_ruck on Jul 24 2022, 18:33.

Details

Reviewers
Fabien
Group Reviewers
Restricted Project
Commits
rABC971c6cc7d5ff: [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

Diff Detail

Repository
rABC Bitcoin ABC
Branch
chronik-blocks-1
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 19716
Build 39151: Build Diffbuild-chronik
Build 39150: arc lint + arc unit

Event Timeline

Fabien added inline comments.
chronik/chronik-db/src/io/blocks.rs
99

Revert

This revision is now accepted and ready to land.Jul 25 2022, 09:06

Rebase + revert comment change