Skip to content

Commit 60c390f

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 8b708e7 commit 60c390f

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
@@ -2005,17 +2005,23 @@ impl_writeable_tlv_based_enum_upgradable!(PendingOutboundPayment,
20052005
(1, reason, option),
20062006
(2, payment_hash, required),
20072007
},
2008+
// Added in 0.0.123. Prior versions will drop these outbounds on downgrade, which is safe because
2009+
// no HTLCs are in-flight.
20082010
(5, AwaitingInvoice) => {
20092011
(0, expiration, required),
20102012
(1, invoice_request, option),
20112013
(2, retry_strategy, required),
20122014
(4, max_total_routing_fee_msat, option),
20132015
},
2016+
// Added in 0.0.123. Prior versions will drop these outbounds on downgrade, which is safe because
2017+
// no HTLCs are in-flight.
20142018
(7, InvoiceReceived) => {
20152019
(0, payment_hash, required),
20162020
(2, retry_strategy, required),
20172021
(4, max_total_routing_fee_msat, option),
20182022
},
2023+
// Added in 0.0.124. Prior versions will drop these outbounds on downgrade, which is safe because
2024+
// no HTLCs are in-flight.
20192025
(9, StaticInvoiceReceived) => {
20202026
(0, payment_hash, required),
20212027
(2, keysend_preimage, required),

0 commit comments

Comments
 (0)