Skip to content

Commit 1ac6a17

Browse files
Document ser for BOLT 12 pending outbound payments.
Useful since these variants will be dropped on downgrade, so want some text to explain why that's okay.
1 parent 84979ad commit 1ac6a17

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

lightning/src/ln/outbound_payment.rs

+6
Original file line numberDiff line numberDiff line change
@@ -2009,17 +2009,23 @@ impl_writeable_tlv_based_enum_upgradable!(PendingOutboundPayment,
20092009
(1, reason, option),
20102010
(2, payment_hash, required),
20112011
},
2012+
// Added in 0.0.123. Prior versions will drop these outbounds on downgrade, which is safe because
2013+
// no HTLCs are in-flight.
20122014
(5, AwaitingInvoice) => {
20132015
(0, expiration, required),
20142016
(1, invoice_request, option),
20152017
(2, retry_strategy, required),
20162018
(4, max_total_routing_fee_msat, option),
20172019
},
2020+
// Added in 0.0.123. Prior versions will drop these outbounds on downgrade, which is safe because
2021+
// no HTLCs are in-flight.
20182022
(7, InvoiceReceived) => {
20192023
(0, payment_hash, required),
20202024
(2, retry_strategy, required),
20212025
(4, max_total_routing_fee_msat, option),
20222026
},
2027+
// Added in 0.0.124. Prior versions will drop these outbounds on downgrade, which is safe because
2028+
// no HTLCs are in-flight.
20232029
(9, StaticInvoiceReceived) => {
20242030
(0, payment_hash, required),
20252031
(2, keysend_preimage, required),

0 commit comments

Comments
 (0)