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 {
1849
1849
/// List of blinded path options the last trampoline hop may choose to route through.
1850
1850
payment_paths : Vec < BlindedPaymentPath > ,
1851
1851
/// If applicable, features of the BOLT12 invoice being paid.
1852
- invoice_features : Option < Bolt12InvoiceFeatures >
1852
+ invoice_features : Option < Bolt12InvoiceFeatures > ,
1853
1853
} ,
1854
1854
}
1855
1855
@@ -2781,12 +2781,13 @@ impl Writeable for OutboundTrampolinePayload {
2781
2781
p. inner_blinded_path ( ) . encode ( ) . into_iter ( ) . chain ( p. payinfo . encode ( ) )
2782
2782
} ) . collect ( ) ;
2783
2783
let blinded_path_tlv = ( 22 , blinded_path_value) ;
2784
+ let custom_tlvs: Vec < & ( u64 , Vec < u8 > ) > = core:: iter:: once ( blinded_path_tlv) . collect ( ) ;
2784
2785
2785
2786
_encode_varint_length_prefixed_tlv ! ( w, {
2786
2787
( 2 , HighZeroBytesDroppedBigSize ( * amt_to_forward) , required) ,
2787
2788
( 4 , HighZeroBytesDroppedBigSize ( * outgoing_cltv_value) , required) ,
2788
2789
( 21 , invoice_features. as_ref( ) . map( |m| WithoutLength ( m) ) , option)
2789
- } , [ & blinded_path_tlv ] ) ;
2790
+ } , custom_tlvs . iter ( ) ) ;
2790
2791
} ,
2791
2792
}
2792
2793
Ok ( ( ) )
You can’t perform that action at this time.
0 commit comments