Add txSize
field to ShelleyTx
and AlonzoTx
.
#4901
Labels
💳 technical-debt
Issues related to technical debt we introduced
serialization
Anything that affects serialization of ledger types
There should be no reason why
ShelleyTx
retains the whole of original bytes, because it can't do so in a block anyways. The only reason why it usesMemoBytes
is for size calculation needed forsizedTxF
. Remove usage ofMemoBytes
forShelleyTx
, thus avoiding keeping around bytes for . However in order for us to memoize the size needed for computing the fee we should add a field toAlonzoTx
andShelleyTx
. This will require creation ofAlonzoTxRaw
and removal ofMemoBytes
forShelleyTx
The text was updated successfully, but these errors were encountered: