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
Lint
Lint Not Applicable
Unit
Tests Not Applicable