HomePhabricator

[Chronik] Add `Tx.size` to protobuf

Description

[Chronik] Add Tx.size to protobuf

Summary:
Adds the serialized tx size to the Tx protobuf message. We do this by using the ser_len method on BitcoinSer.

We could use some fancy data_pos delta calculation instead without having to iterate through the tx, but this is error prone and ser_len is quite cheap already.

Test Plan: ninja check-functional

Reviewers: Fabien, #bitcoin_abc, PiRK

Reviewed By: #bitcoin_abc, PiRK

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

Details

Provenance
tobias_ruckAuthored on May 3 2023, 23:50
tobias_ruckPushed on May 4 2023, 09:08
Reviewer
Restricted Project
Differential Revision
D13859: [Chronik] Add `Tx.size` to protobuf
Parents
rABCfa7e5e696cd7: [Chronik] Add various block stats to `BlockInfo` protobuf message
Branches
Unknown
Tags
Unknown