@@ -296,13 +296,10 @@ fn do_test_async_commitment_signature_for_commitment_signed_revoke_and_ack(
296
296
let dst = & nodes[ 1 ] ;
297
297
let ( route, our_payment_hash, _our_payment_preimage, our_payment_secret) =
298
298
get_route_and_payment_hash ! ( src, dst, 8000000 ) ;
299
+ let recipient_fields = RecipientOnionFields :: secret_only ( our_payment_secret) ;
300
+ let payment_id = PaymentId ( our_payment_hash. 0 ) ;
299
301
src. node
300
- . send_payment_with_route (
301
- route,
302
- our_payment_hash,
303
- RecipientOnionFields :: secret_only ( our_payment_secret) ,
304
- PaymentId ( our_payment_hash. 0 ) ,
305
- )
302
+ . send_payment_with_route ( route, our_payment_hash, recipient_fields, payment_id)
306
303
. unwrap ( ) ;
307
304
check_added_monitors ! ( src, 1 ) ;
308
305
@@ -538,13 +535,10 @@ fn do_test_async_raa_peer_disconnect(
538
535
let dst = & nodes[ 1 ] ;
539
536
let ( route, our_payment_hash, _our_payment_preimage, our_payment_secret) =
540
537
get_route_and_payment_hash ! ( src, dst, 8000000 ) ;
538
+ let recipient_fields = RecipientOnionFields :: secret_only ( our_payment_secret) ;
539
+ let payment_id = PaymentId ( our_payment_hash. 0 ) ;
541
540
src. node
542
- . send_payment_with_route (
543
- route,
544
- our_payment_hash,
545
- RecipientOnionFields :: secret_only ( our_payment_secret) ,
546
- PaymentId ( our_payment_hash. 0 ) ,
547
- )
541
+ . send_payment_with_route ( route, our_payment_hash, recipient_fields, payment_id)
548
542
. unwrap ( ) ;
549
543
check_added_monitors ! ( src, 1 ) ;
550
544
@@ -702,13 +696,10 @@ fn do_test_async_commitment_signature_peer_disconnect(
702
696
let dst = & nodes[ 1 ] ;
703
697
let ( route, our_payment_hash, _our_payment_preimage, our_payment_secret) =
704
698
get_route_and_payment_hash ! ( src, dst, 8000000 ) ;
699
+ let recipient_fields = RecipientOnionFields :: secret_only ( our_payment_secret) ;
700
+ let payment_id = PaymentId ( our_payment_hash. 0 ) ;
705
701
src. node
706
- . send_payment_with_route (
707
- route,
708
- our_payment_hash,
709
- RecipientOnionFields :: secret_only ( our_payment_secret) ,
710
- PaymentId ( our_payment_hash. 0 ) ,
711
- )
702
+ . send_payment_with_route ( route, our_payment_hash, recipient_fields, payment_id)
712
703
. unwrap ( ) ;
713
704
check_added_monitors ! ( src, 1 ) ;
714
705
@@ -871,14 +862,11 @@ fn do_test_async_commitment_signature_ordering(monitor_update_failure: bool) {
871
862
// to the peer.
872
863
let ( route, payment_hash_2, payment_preimage_2, payment_secret_2) =
873
864
get_route_and_payment_hash ! ( nodes[ 0 ] , nodes[ 1 ] , 1000000 ) ;
865
+ let recipient_fields = RecipientOnionFields :: secret_only ( payment_secret_2) ;
866
+ let payment_id = PaymentId ( payment_hash_2. 0 ) ;
874
867
nodes[ 0 ]
875
868
. node
876
- . send_payment_with_route (
877
- route,
878
- payment_hash_2,
879
- RecipientOnionFields :: secret_only ( payment_secret_2) ,
880
- PaymentId ( payment_hash_2. 0 ) ,
881
- )
869
+ . send_payment_with_route ( route, payment_hash_2, recipient_fields, payment_id)
882
870
. unwrap ( ) ;
883
871
check_added_monitors ! ( nodes[ 0 ] , 1 ) ;
884
872
0 commit comments