@@ -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,8 +1012,6 @@ 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) ) ;
@@ -1029,21 +1022,14 @@ fn send_invoice_for_refund_with_distinct_reply_path() {
1029
1022
1030
1023
connect_peers ( david, bob) ;
1031
1024
1032
- // Send, extract and verify the first Invoice Request message
1033
1025
let onion_message = david. onion_messenger . next_onion_message_for_peer ( bob_id) . unwrap ( ) ;
1034
1026
bob. onion_messenger . handle_onion_message ( & david_id, & onion_message) ;
1035
1027
1036
1028
connect_peers ( alice, charlie) ;
1037
1029
1038
1030
let onion_message = bob. onion_messenger . next_onion_message_for_peer ( alice_id) . unwrap ( ) ;
1039
1031
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
-
1032
+ let ( _, reply_path) = extract_invoice ( alice, & onion_message) ;
1047
1033
assert_eq ! ( reply_path. unwrap( ) . introduction_node, IntroductionNode :: NodeId ( charlie_id) ) ;
1048
1034
1049
1035
// Send, extract and verify the second Invoice Request message
@@ -1052,13 +1038,7 @@ fn send_invoice_for_refund_with_distinct_reply_path() {
1052
1038
1053
1039
let onion_message = bob. onion_messenger . next_onion_message_for_peer ( alice_id) . unwrap ( ) ;
1054
1040
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
-
1041
+ let ( _, reply_path) = extract_invoice ( alice, & onion_message) ;
1062
1042
assert_eq ! ( reply_path. unwrap( ) . introduction_node, IntroductionNode :: NodeId ( nodes[ 6 ] . node. get_our_node_id( ) ) ) ;
1063
1043
}
1064
1044
0 commit comments