Page MenuHomePhabricator

[Chronik] Add `IndexTx` and `prepare_indexed_txs`
ClosedPublic

Authored by tobias_ruck on Apr 13 2023, 16:35.

Details

Reviewers
Fabien
Group Reviewers
Restricted Project
Commits
rABC630bfd158b78: [Chronik] Add `IndexTx` and `prepare_indexed_txs`
Summary

This nicely bundles data we need for indexing tx history, UTXOs etc. without having to recompute things like tx_num, is_coinbase etc. We use this in GroupHistoryWriter.

Also compute input_nums in prepare_indexed_txs, which atm is unused but will be necessary for indexing UTXOs. In the future, this function would also be a place where optimizations such as caching or multi_get could be employed to speed up the indexer.

Test Plan

ninja check-crates && ninja check-functional

Diff Detail

Repository
rABC Bitcoin ABC
Branch
chronik-indextx
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 23292
Build 46203: Build Diffbuild-chronik
Build 46202: arc lint + arc unit