@@ -296,7 +296,7 @@ fn do_test_async_commitment_signature_for_commitment_signed_revoke_and_ack(
296296
297297 let ( route, our_payment_hash, _our_payment_preimage, our_payment_secret) =
298298 get_route_and_payment_hash ! ( src, dst, 8000000 ) ;
299- let recipient_fields = RecipientOnionFields :: secret_only ( our_payment_secret) ;
299+ let recipient_fields = RecipientOnionFields :: secret_only ( our_payment_secret, 8000000 ) ;
300300 let payment_id = PaymentId ( our_payment_hash. 0 ) ;
301301 src. node
302302 . send_payment_with_route ( route, our_payment_hash, recipient_fields, payment_id)
@@ -520,7 +520,7 @@ fn do_test_async_raa_peer_disconnect(
520520
521521 let ( route, our_payment_hash, _our_payment_preimage, our_payment_secret) =
522522 get_route_and_payment_hash ! ( src, dst, 8000000 ) ;
523- let recipient_fields = RecipientOnionFields :: secret_only ( our_payment_secret) ;
523+ let recipient_fields = RecipientOnionFields :: secret_only ( our_payment_secret, 8000000 ) ;
524524 let payment_id = PaymentId ( our_payment_hash. 0 ) ;
525525 src. node
526526 . send_payment_with_route ( route, our_payment_hash, recipient_fields, payment_id)
@@ -669,7 +669,7 @@ fn do_test_async_commitment_signature_peer_disconnect(
669669
670670 let ( route, our_payment_hash, _our_payment_preimage, our_payment_secret) =
671671 get_route_and_payment_hash ! ( src, dst, 8000000 ) ;
672- let recipient_fields = RecipientOnionFields :: secret_only ( our_payment_secret) ;
672+ let recipient_fields = RecipientOnionFields :: secret_only ( our_payment_secret, 8000000 ) ;
673673 let payment_id = PaymentId ( our_payment_hash. 0 ) ;
674674 src. node
675675 . send_payment_with_route ( route, our_payment_hash, recipient_fields, payment_id)
@@ -804,7 +804,7 @@ fn do_test_async_commitment_signature_ordering(monitor_update_failure: bool) {
804804 // to the peer.
805805 let ( route, payment_hash_2, payment_preimage_2, payment_secret_2) =
806806 get_route_and_payment_hash ! ( nodes[ 0 ] , nodes[ 1 ] , 1000000 ) ;
807- let recipient_fields = RecipientOnionFields :: secret_only ( payment_secret_2) ;
807+ let recipient_fields = RecipientOnionFields :: secret_only ( payment_secret_2, 1000000 ) ;
808808 let payment_id = PaymentId ( payment_hash_2. 0 ) ;
809809 nodes[ 0 ]
810810 . node
@@ -1343,14 +1343,14 @@ fn test_no_disconnect_while_async_revoke_and_ack_expecting_remote_commitment_sig
13431343 // We'll send a payment from both nodes to each other.
13441344 let ( route1, payment_hash1, _, payment_secret1) =
13451345 get_route_and_payment_hash ! ( & nodes[ 0 ] , & nodes[ 1 ] , payment_amount) ;
1346- let onion1 = RecipientOnionFields :: secret_only ( payment_secret1) ;
1346+ let onion1 = RecipientOnionFields :: secret_only ( payment_secret1, payment_amount ) ;
13471347 let payment_id1 = PaymentId ( payment_hash1. 0 ) ;
13481348 nodes[ 0 ] . node . send_payment_with_route ( route1, payment_hash1, onion1, payment_id1) . unwrap ( ) ;
13491349 check_added_monitors ( & nodes[ 0 ] , 1 ) ;
13501350
13511351 let ( route2, payment_hash2, _, payment_secret2) =
13521352 get_route_and_payment_hash ! ( & nodes[ 1 ] , & nodes[ 0 ] , payment_amount) ;
1353- let onion2 = RecipientOnionFields :: secret_only ( payment_secret2) ;
1353+ let onion2 = RecipientOnionFields :: secret_only ( payment_secret2, payment_amount ) ;
13541354 let payment_id2 = PaymentId ( payment_hash2. 0 ) ;
13551355 nodes[ 1 ] . node . send_payment_with_route ( route2, payment_hash2, onion2, payment_id2) . unwrap ( ) ;
13561356 check_added_monitors ( & nodes[ 1 ] , 1 ) ;
0 commit comments