@@ -30,7 +30,7 @@ use crate::offers::parse::{ParseError, ParsedMessage, SemanticError};
3030use crate :: offers:: payer:: { PayerTlvStream , PayerTlvStreamRef } ;
3131use crate :: offers:: refund:: { Refund , RefundContents } ;
3232use crate :: onion_message:: BlindedPath ;
33- use crate :: util:: ser:: { HighZeroBytesDroppedBigSize , SeekReadable , WithoutLength , Writeable , Writer } ;
33+ use crate :: util:: ser:: { HighZeroBytesDroppedBigSize , Iterable , SeekReadable , WithoutLength , Writeable , Writer } ;
3434
3535use crate :: prelude:: * ;
3636
@@ -432,7 +432,7 @@ impl InvoiceFields {
432432 } ;
433433
434434 InvoiceTlvStreamRef {
435- paths : Some ( & self . paths ) ,
435+ paths : Some ( Iterable ( self . paths . iter ( ) ) ) ,
436436 blindedpay : Some ( & self . payinfo ) ,
437437 created_at : Some ( self . created_at . as_secs ( ) ) ,
438438 relative_expiry : self . relative_expiry . map ( |duration| duration. as_secs ( ) as u32 ) ,
@@ -461,7 +461,7 @@ impl TryFrom<Vec<u8>> for Invoice {
461461}
462462
463463tlv_stream ! ( InvoiceTlvStream , InvoiceTlvStreamRef , 160 ..240 , {
464- ( 160 , paths: ( Vec <BlindedPath >, WithoutLength ) ) ,
464+ ( 160 , paths: ( Vec <BlindedPath >, Iterable < ' a , core :: slice :: Iter < ' a , BlindedPath > , BlindedPath > ) ) ,
465465 ( 162 , blindedpay: ( Vec <BlindedPayInfo >, WithoutLength ) ) ,
466466 ( 164 , created_at: ( u64 , HighZeroBytesDroppedBigSize ) ) ,
467467 ( 166 , relative_expiry: ( u32 , HighZeroBytesDroppedBigSize ) ) ,
0 commit comments