HomePhabricator

[Chronik] Move proto logic from `QueryTxs::tx_by_id` to `make_tx_proto`

Description

[Chronik] Move proto logic from QueryTxs::tx_by_id to make_tx_proto

Summary: Having this be its own function makes the code cleaner and allows us to re-use the function at other places.

Test Plan: ninja check-crates && ninja && ./test/functional/test_runner.py chronik_tx

Reviewers: Fabien, #bitcoin_abc

Reviewed By: Fabien, #bitcoin_abc

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

Details

Provenance
tobias_ruckAuthored on Apr 4 2023, 09:56
tobias_ruckPushed on Apr 4 2023, 13:46
Reviewer
Restricted Project
Differential Revision
D13545: [Chronik] Move proto logic from `QueryTxs::tx_by_id` to `make_tx_proto`
Parents
rABC42327ed81f24: [Chronik] Remove `chronik-bridge` dependency from `chronik-db`
Branches
Unknown
Tags
Unknown