@@ -948,9 +948,7 @@ fn send_invoice_requests_with_distinct_reply_path() {
948
948
let onion_message = bob. onion_messenger . next_onion_message_for_peer ( alice_id) . unwrap ( ) ;
949
949
alice. onion_messenger . handle_onion_message ( & bob_id, & onion_message) ;
950
950
951
- let ( invoice_request, reply_path) = extract_invoice_request ( alice, & onion_message) ;
952
- assert_eq ! ( invoice_request. amount_msats( ) , None ) ;
953
- assert_ne ! ( invoice_request. payer_id( ) , david_id) ;
951
+ let ( _, reply_path) = extract_invoice_request ( alice, & onion_message) ;
954
952
assert_eq ! ( reply_path. introduction_node, IntroductionNode :: NodeId ( charlie_id) ) ;
955
953
956
954
// Send, extract and verify the second Invoice Request message
@@ -960,10 +958,7 @@ fn send_invoice_requests_with_distinct_reply_path() {
960
958
let onion_message = bob. onion_messenger . next_onion_message_for_peer ( alice_id) . unwrap ( ) ;
961
959
alice. onion_messenger . handle_onion_message ( & bob_id, & onion_message) ;
962
960
963
- let ( invoice_request, reply_path) = extract_invoice_request ( alice, & onion_message) ;
964
-
965
- assert_eq ! ( invoice_request. amount_msats( ) , None ) ;
966
- assert_ne ! ( invoice_request. payer_id( ) , david_id) ;
961
+ let ( _, reply_path) = extract_invoice_request ( alice, & onion_message) ;
967
962
assert_eq ! ( reply_path. introduction_node, IntroductionNode :: NodeId ( nodes[ 6 ] . node. get_our_node_id( ) ) ) ;
968
963
}
969
964
@@ -1017,33 +1012,22 @@ fn send_invoice_for_refund_with_distinct_reply_path() {
1017
1012
. create_refund_builder ( 10_000_000 , absolute_expiry, payment_id, Retry :: Attempts ( 0 ) , None )
1018
1013
. unwrap ( )
1019
1014
. build ( ) . unwrap ( ) ;
1020
- assert_eq ! ( refund. amount_msats( ) , 10_000_000 ) ;
1021
- assert_eq ! ( refund. absolute_expiry( ) , Some ( absolute_expiry) ) ;
1022
1015
assert_ne ! ( refund. payer_id( ) , alice_id) ;
1023
1016
for path in refund. paths ( ) {
1024
1017
assert_eq ! ( path. introduction_node, IntroductionNode :: NodeId ( bob_id) ) ;
1025
1018
}
1026
1019
expect_recent_payment ! ( alice, RecentPaymentDetails :: AwaitingInvoice , payment_id) ;
1027
1020
1028
- let expected_invoice = david. node . request_refund_payment ( & refund) . unwrap ( ) ;
1029
-
1030
1021
connect_peers ( david, bob) ;
1031
1022
1032
- // Send, extract and verify the first Invoice Request message
1033
1023
let onion_message = david. onion_messenger . next_onion_message_for_peer ( bob_id) . unwrap ( ) ;
1034
1024
bob. onion_messenger . handle_onion_message ( & david_id, & onion_message) ;
1035
1025
1036
1026
connect_peers ( alice, charlie) ;
1037
1027
1038
1028
let onion_message = bob. onion_messenger . next_onion_message_for_peer ( alice_id) . unwrap ( ) ;
1039
1029
1040
- let ( invoice, reply_path) = extract_invoice ( alice, & onion_message) ;
1041
- assert_eq ! ( invoice, expected_invoice) ;
1042
-
1043
- assert_eq ! ( invoice. amount_msats( ) , 10_000_000 ) ;
1044
- assert_ne ! ( invoice. signing_pubkey( ) , david_id) ;
1045
- assert ! ( !invoice. payment_paths( ) . is_empty( ) ) ;
1046
-
1030
+ let ( _, reply_path) = extract_invoice ( alice, & onion_message) ;
1047
1031
assert_eq ! ( reply_path. unwrap( ) . introduction_node, IntroductionNode :: NodeId ( charlie_id) ) ;
1048
1032
1049
1033
// Send, extract and verify the second Invoice Request message
@@ -1052,13 +1036,7 @@ fn send_invoice_for_refund_with_distinct_reply_path() {
1052
1036
1053
1037
let onion_message = bob. onion_messenger . next_onion_message_for_peer ( alice_id) . unwrap ( ) ;
1054
1038
1055
- let ( invoice, reply_path) = extract_invoice ( alice, & onion_message) ;
1056
- assert_eq ! ( invoice, expected_invoice) ;
1057
-
1058
- assert_eq ! ( invoice. amount_msats( ) , 10_000_000 ) ;
1059
- assert_ne ! ( invoice. signing_pubkey( ) , david_id) ;
1060
- assert ! ( !invoice. payment_paths( ) . is_empty( ) ) ;
1061
-
1039
+ let ( _, reply_path) = extract_invoice ( alice, & onion_message) ;
1062
1040
assert_eq ! ( reply_path. unwrap( ) . introduction_node, IntroductionNode :: NodeId ( nodes[ 6 ] . node. get_our_node_id( ) ) ) ;
1063
1041
}
1064
1042
0 commit comments