@@ -1102,7 +1102,7 @@ impl InvoiceFields {
11021102 fallbacks : self . fallbacks . as_ref ( ) ,
11031103 features,
11041104 node_id : Some ( & self . signing_pubkey ) ,
1105- async_receive_message_paths : None ,
1105+ invoice_message_paths : None ,
11061106 }
11071107 }
11081108}
@@ -1171,7 +1171,7 @@ tlv_stream!(InvoiceTlvStream, InvoiceTlvStreamRef, 160..240, {
11711171 ( 174 , features: ( Bolt12InvoiceFeatures , WithoutLength ) ) ,
11721172 ( 176 , node_id: PublicKey ) ,
11731173 // Only present in `StaticInvoice`s.
1174- ( 238 , async_receive_message_paths : ( Vec <BlindedPath >, WithoutLength ) ) ,
1174+ ( 238 , invoice_message_paths : ( Vec <BlindedPath >, WithoutLength ) ) ,
11751175} ) ;
11761176
11771177pub ( super ) type BlindedPathIter < ' a > = core:: iter:: Map <
@@ -1309,11 +1309,11 @@ impl TryFrom<PartialInvoiceTlvStream> for InvoiceContents {
13091309 invoice_request_tlv_stream,
13101310 InvoiceTlvStream {
13111311 paths, blindedpay, created_at, relative_expiry, payment_hash, amount, fallbacks,
1312- features, node_id, async_receive_message_paths ,
1312+ features, node_id, invoice_message_paths ,
13131313 } ,
13141314 ) = tlv_stream;
13151315
1316- if async_receive_message_paths . is_some ( ) { return Err ( Bolt12SemanticError :: UnexpectedPaths ) }
1316+ if invoice_message_paths . is_some ( ) { return Err ( Bolt12SemanticError :: UnexpectedPaths ) }
13171317
13181318 let payment_paths = construct_payment_paths ( blindedpay, paths) ?;
13191319
@@ -1580,7 +1580,7 @@ mod tests {
15801580 fallbacks: None ,
15811581 features: None ,
15821582 node_id: Some ( & recipient_pubkey( ) ) ,
1583- async_receive_message_paths : None ,
1583+ invoice_message_paths : None ,
15841584 } ,
15851585 SignatureTlvStreamRef { signature: Some ( & invoice. signature( ) ) } ,
15861586 ) ,
@@ -1672,7 +1672,7 @@ mod tests {
16721672 fallbacks: None ,
16731673 features: None ,
16741674 node_id: Some ( & recipient_pubkey( ) ) ,
1675- async_receive_message_paths : None ,
1675+ invoice_message_paths : None ,
16761676 } ,
16771677 SignatureTlvStreamRef { signature: Some ( & invoice. signature( ) ) } ,
16781678 ) ,
@@ -2445,7 +2445,7 @@ mod tests {
24452445 }
24462446
24472447 #[ test]
2448- fn fails_parsing_invoice_with_async_receive_message_paths ( ) {
2448+ fn fails_parsing_invoice_with_invoice_message_paths ( ) {
24492449 let invoice = OfferBuilder :: new ( recipient_pubkey ( ) )
24502450 . amount_msats ( 1000 )
24512451 . build ( ) . unwrap ( )
@@ -2466,8 +2466,8 @@ mod tests {
24662466 } ;
24672467
24682468 let mut tlv_stream = invoice. as_tlv_stream ( ) ;
2469- let async_receive_message_paths = vec ! [ blinded_path] ;
2470- tlv_stream. 3 . async_receive_message_paths = Some ( & async_receive_message_paths ) ;
2469+ let invoice_message_paths = vec ! [ blinded_path] ;
2470+ tlv_stream. 3 . invoice_message_paths = Some ( & invoice_message_paths ) ;
24712471
24722472 match Bolt12Invoice :: try_from ( tlv_stream. to_bytes ( ) ) {
24732473 Ok ( _) => panic ! ( "expected error" ) ,
0 commit comments