Page MenuHomePhabricator

[Chronik] Refactor `QueryTxs::tx_by_id`: remove Cow etc.
ClosedPublic

Authored by tobias_ruck on Apr 24 2023, 14:25.

Details

Reviewers
Fabien
Group Reviewers
Restricted Project
Commits
rABCaacda0fe4516: [Chronik] Refactor `QueryTxs::tx_by_id`: remove Cow etc.
Summary

By inlining make_tx_proto in the match arms we don't need Cows anymore, and the code becomes simpler and more readable.

Note: No actual cows have been harmed in the production of this diff.

Test Plan

ninja check-crates

Diff Detail

Repository
rABC Bitcoin ABC
Branch
chronik-refactor-query-txs
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 23419
Build 46457: Build Diffbuild-chronik
Build 46456: arc lint + arc unit