@@ -1385,7 +1385,7 @@ fn custom_tlvs_to_blinded_path() {
13851385 htlc_minimum_msat : chan_upd. htlc_minimum_msat ,
13861386 } ,
13871387 payment_context : PaymentContext :: unknown ( ) ,
1388- custom_tlvs : Vec :: new ( ) ,
1388+ custom_tlvs : vec ! [ 43 , 43 ]
13891389 } ;
13901390 let mut secp_ctx = Secp256k1 :: new ( ) ;
13911391 let blinded_path = BlindedPaymentPath :: new (
@@ -1399,6 +1399,7 @@ fn custom_tlvs_to_blinded_path() {
13991399 ) ;
14001400
14011401 let recipient_onion_fields = RecipientOnionFields :: spontaneous_empty ( )
1402+ . with_user_custom_tlvs ( vec ! [ 43 , 43 ] )
14021403 . with_sender_custom_tlvs ( vec ! [ ( ( 1 << 16 ) + 3 , vec![ 42 , 42 ] ) ] )
14031404 . unwrap ( ) ;
14041405 nodes[ 0 ] . node . send_payment ( payment_hash, recipient_onion_fields. clone ( ) ,
@@ -1412,10 +1413,12 @@ fn custom_tlvs_to_blinded_path() {
14121413 let path = & [ & nodes[ 1 ] ] ;
14131414 let args = PassAlongPathArgs :: new ( & nodes[ 0 ] , path, amt_msat, payment_hash, ev)
14141415 . with_payment_secret ( payment_secret)
1416+ . with_user_custom_tlvs ( recipient_onion_fields. user_custom_tlvs . clone ( ) )
14151417 . with_sender_custom_tlvs ( recipient_onion_fields. sender_custom_tlvs . clone ( ) ) ;
14161418 do_pass_along_path ( args) ;
14171419 claim_payment_along_route (
14181420 ClaimAlongRouteArgs :: new ( & nodes[ 0 ] , & [ & [ & nodes[ 1 ] ] ] , payment_preimage)
1421+ . with_user_custom_tlvs ( recipient_onion_fields. user_custom_tlvs . clone ( ) )
14191422 . with_sender_custom_tlvs ( recipient_onion_fields. sender_custom_tlvs . clone ( ) )
14201423 ) ;
14211424}
0 commit comments