@@ -1102,7 +1102,7 @@ impl InvoiceFields {
1102
1102
fallbacks : self . fallbacks . as_ref ( ) ,
1103
1103
features,
1104
1104
node_id : Some ( & self . signing_pubkey ) ,
1105
- async_receive_message_paths : None ,
1105
+ invoice_message_paths : None ,
1106
1106
}
1107
1107
}
1108
1108
}
@@ -1171,7 +1171,7 @@ tlv_stream!(InvoiceTlvStream, InvoiceTlvStreamRef, 160..240, {
1171
1171
( 174 , features: ( Bolt12InvoiceFeatures , WithoutLength ) ) ,
1172
1172
( 176 , node_id: PublicKey ) ,
1173
1173
// Only present in `StaticInvoice`s.
1174
- ( 238 , async_receive_message_paths : ( Vec <BlindedPath >, WithoutLength ) ) ,
1174
+ ( 238 , invoice_message_paths : ( Vec <BlindedPath >, WithoutLength ) ) ,
1175
1175
} ) ;
1176
1176
1177
1177
pub ( super ) type BlindedPathIter < ' a > = core:: iter:: Map <
@@ -1309,11 +1309,11 @@ impl TryFrom<PartialInvoiceTlvStream> for InvoiceContents {
1309
1309
invoice_request_tlv_stream,
1310
1310
InvoiceTlvStream {
1311
1311
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 ,
1313
1313
} ,
1314
1314
) = tlv_stream;
1315
1315
1316
- if async_receive_message_paths . is_some ( ) { return Err ( Bolt12SemanticError :: UnexpectedPaths ) }
1316
+ if invoice_message_paths . is_some ( ) { return Err ( Bolt12SemanticError :: UnexpectedPaths ) }
1317
1317
1318
1318
let payment_paths = construct_payment_paths ( blindedpay, paths) ?;
1319
1319
@@ -1580,7 +1580,7 @@ mod tests {
1580
1580
fallbacks: None ,
1581
1581
features: None ,
1582
1582
node_id: Some ( & recipient_pubkey( ) ) ,
1583
- async_receive_message_paths : None ,
1583
+ invoice_message_paths : None ,
1584
1584
} ,
1585
1585
SignatureTlvStreamRef { signature: Some ( & invoice. signature( ) ) } ,
1586
1586
) ,
@@ -1672,7 +1672,7 @@ mod tests {
1672
1672
fallbacks: None ,
1673
1673
features: None ,
1674
1674
node_id: Some ( & recipient_pubkey( ) ) ,
1675
- async_receive_message_paths : None ,
1675
+ invoice_message_paths : None ,
1676
1676
} ,
1677
1677
SignatureTlvStreamRef { signature: Some ( & invoice. signature( ) ) } ,
1678
1678
) ,
@@ -2445,7 +2445,7 @@ mod tests {
2445
2445
}
2446
2446
2447
2447
#[ test]
2448
- fn fails_parsing_invoice_with_async_receive_message_paths ( ) {
2448
+ fn fails_parsing_invoice_with_invoice_message_paths ( ) {
2449
2449
let invoice = OfferBuilder :: new ( recipient_pubkey ( ) )
2450
2450
. amount_msats ( 1000 )
2451
2451
. build ( ) . unwrap ( )
@@ -2466,8 +2466,8 @@ mod tests {
2466
2466
} ;
2467
2467
2468
2468
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 ) ;
2471
2471
2472
2472
match Bolt12Invoice :: try_from ( tlv_stream. to_bytes ( ) ) {
2473
2473
Ok ( _) => panic ! ( "expected error" ) ,
0 commit comments