Skip to content

Commit 8232664

Browse files
committed
f - add comment
1 parent bb8edbc commit 8232664

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lightning/src/offers/invoice_request.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1004,13 +1004,16 @@ pub(super) const INVOICE_REQUEST_TYPES: core::ops::Range<u64> = 80..160;
10041004
/// [`Refund::payer_id`]: crate::offers::refund::Refund::payer_id
10051005
pub(super) const INVOICE_REQUEST_PAYER_ID_TYPE: u64 = 88;
10061006

1007+
// This TLV stream is used for both InvoiceRequest and Refund, but not all TLV records are valid for
1008+
// InvoiceRequest as noted below.
10071009
tlv_stream!(InvoiceRequestTlvStream, InvoiceRequestTlvStreamRef, INVOICE_REQUEST_TYPES, {
10081010
(80, chain: ChainHash),
10091011
(82, amount: (u64, HighZeroBytesDroppedBigSize)),
10101012
(84, features: (InvoiceRequestFeatures, WithoutLength)),
10111013
(86, quantity: (u64, HighZeroBytesDroppedBigSize)),
10121014
(INVOICE_REQUEST_PAYER_ID_TYPE, payer_id: PublicKey),
10131015
(89, payer_note: (String, WithoutLength)),
1016+
// Only used for Refund since the onion message of an InvoiceRequest has a reply path.
10141017
(90, paths: (Vec<BlindedPath>, WithoutLength)),
10151018
});
10161019

0 commit comments

Comments
 (0)