Skip to content

Commit 62808ec

Browse files
fixup! Add experimental TLV fields for invoice requests: invreq_contact_secret, invreq_payer_offer, invreq_payer_bip_353_name
Signed-off-by: Vincenzo Palazzo <vincenzopalazzodev@gmail.com>
1 parent d50d1b1 commit 62808ec

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lightning/src/offers/invoice_request.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1373,7 +1373,7 @@ tlv_stream!(
13731373
ExperimentalInvoiceRequestTlvStreamRef<'a>,
13741374
EXPERIMENTAL_INVOICE_REQUEST_TYPES,
13751375
{
1376-
(2_000_001_729, invreq_contact_secret: (Vec<u8>, WithoutLength)),
1376+
(2_000_001_729, invreq_contact_secret: [u8; 32]),
13771377
(2_000_001_731, invreq_payer_offer: (Vec<u8>, WithoutLength)),
13781378
(2_000_001_733, invreq_payer_bip_353_name: (Vec<u8>, WithoutLength)),
13791379
// When adding experimental TLVs, update EXPERIMENTAL_TLV_ALLOCATION_SIZE accordingly in
@@ -1385,7 +1385,7 @@ tlv_stream!(
13851385
tlv_stream!(
13861386
ExperimentalInvoiceRequestTlvStream, ExperimentalInvoiceRequestTlvStreamRef<'a>,
13871387
EXPERIMENTAL_INVOICE_REQUEST_TYPES, {
1388-
(2_000_001_729, invreq_contact_secret: (Vec<u8>, WithoutLength)),
1388+
(2_000_001_729, invreq_contact_secret: [u8; 32]),
13891389
(2_000_001_731, invreq_payer_offer: (Vec<u8>, WithoutLength)),
13901390
(2_000_001_733, invreq_payer_bip_353_name: (Vec<u8>, WithoutLength)),
13911391
(2_999_999_999, experimental_bar: (u64, HighZeroBytesDroppedBigSize)),

0 commit comments

Comments
 (0)