-impl_writeable!(RevokedOutput, 33*3 + 32 + 8 + 8 + 2, {
- per_commitment_point,
- counterparty_delayed_payment_base_key,
- counterparty_htlc_base_key,
- per_commitment_key,
- weight,
- amount,
- on_counterparty_tx_csv
-});
+impl_writeable_tlv_based!(RevokedOutput, {
+ (0, per_commitment_point),
+ (2, counterparty_delayed_payment_base_key),
+ (4, counterparty_htlc_base_key),
+ (6, per_commitment_key),
+ (8, weight),
+ (10, amount),
+ (12, on_counterparty_tx_csv),
+}, {}, {});