Page MenuHomePhabricator

[Chronik] Add `GroupHistoryWriter::member_num_pages_and_txs`
ClosedPublic

Authored by tobias_ruck on Apr 4 2023, 10:43.

Details

Summary

Replace member_num_txs in GroupHistoryWriter with member_num_pages_and_txs, as we often need both the number of pages and txs of a member at the same time, and we can read them in one go without going back to the DB.

We also add some tests (previously member_num_txs was untested).

Test Plan

ninja check-crates

Diff Detail

Repository
rABC Bitcoin ABC
Branch
chronik-member_num_pages_and_txs
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 22950
Build 45520: Build Diffbuild-chronik
Build 45519: arc lint + arc unit