File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -1849,7 +1849,7 @@ mod fuzzy_internal_msgs {
18491849 /// List of blinded path options the last trampoline hop may choose to route through.
18501850 payment_paths : Vec < BlindedPaymentPath > ,
18511851 /// If applicable, features of the BOLT12 invoice being paid.
1852- invoice_features : Option < Bolt12InvoiceFeatures >
1852+ invoice_features : Option < Bolt12InvoiceFeatures > ,
18531853 } ,
18541854 }
18551855
@@ -2781,12 +2781,13 @@ impl Writeable for OutboundTrampolinePayload {
27812781 p. inner_blinded_path ( ) . encode ( ) . into_iter ( ) . chain ( p. payinfo . encode ( ) )
27822782 } ) . collect ( ) ;
27832783 let blinded_path_tlv = ( 22 , blinded_path_value) ;
2784+ let custom_tlvs: Vec < & ( u64 , Vec < u8 > ) > = core:: iter:: once ( blinded_path_tlv) . collect ( ) ;
27842785
27852786 _encode_varint_length_prefixed_tlv ! ( w, {
27862787 ( 2 , HighZeroBytesDroppedBigSize ( * amt_to_forward) , required) ,
27872788 ( 4 , HighZeroBytesDroppedBigSize ( * outgoing_cltv_value) , required) ,
27882789 ( 21 , invoice_features. as_ref( ) . map( |m| WithoutLength ( m) ) , option)
2789- } , [ & blinded_path_tlv ] ) ;
2790+ } , custom_tlvs . iter ( ) ) ;
27902791 } ,
27912792 }
27922793 Ok ( ( ) )
You can’t perform that action at this time.
0 commit comments