HomePhabricator

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

Description

[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

Reviewers: Fabien, #bitcoin_abc

Reviewed By: Fabien, #bitcoin_abc

Differential Revision: https://reviews.bitcoinabc.org/D13768

Details

Provenance
tobias_ruckAuthored on Apr 24 2023, 14:24
tobias_ruckPushed on Apr 24 2023, 19:44
Reviewer
Restricted Project
Differential Revision
D13768: [Chronik] Refactor `QueryTxs::tx_by_id`: remove Cow etc.
Parents
rABC2f363b9477e6: [guix] implement guix build for linux
Branches
Unknown
Tags
Unknown