@@ -1313,7 +1313,7 @@ fn custom_tlvs_to_blinded_path() {
13131313 htlc_minimum_msat : chan_upd. htlc_minimum_msat ,
13141314 } ,
13151315 payment_context : PaymentContext :: unknown ( ) ,
1316- custom_tlvs : Vec :: new ( ) ,
1316+ custom_tlvs : vec ! [ 43 , 43 ]
13171317 } ;
13181318 let mut secp_ctx = Secp256k1 :: new ( ) ;
13191319 let blinded_path = BlindedPaymentPath :: new (
@@ -1327,6 +1327,7 @@ fn custom_tlvs_to_blinded_path() {
13271327 ) ;
13281328
13291329 let recipient_onion_fields = RecipientOnionFields :: spontaneous_empty ( )
1330+ . with_user_custom_tlvs ( vec ! [ 43 , 43 ] )
13301331 . with_sender_custom_tlvs ( vec ! [ ( ( 1 << 16 ) + 3 , vec![ 42 , 42 ] ) ] )
13311332 . unwrap ( ) ;
13321333 nodes[ 0 ] . node . send_payment ( payment_hash, recipient_onion_fields. clone ( ) ,
@@ -1340,10 +1341,12 @@ fn custom_tlvs_to_blinded_path() {
13401341 let path = & [ & nodes[ 1 ] ] ;
13411342 let args = PassAlongPathArgs :: new ( & nodes[ 0 ] , path, amt_msat, payment_hash, ev)
13421343 . with_payment_secret ( payment_secret)
1344+ . with_user_custom_tlvs ( recipient_onion_fields. user_custom_tlvs . clone ( ) )
13431345 . with_sender_custom_tlvs ( recipient_onion_fields. sender_custom_tlvs . clone ( ) ) ;
13441346 do_pass_along_path ( args) ;
13451347 claim_payment_along_route (
13461348 ClaimAlongRouteArgs :: new ( & nodes[ 0 ] , & [ & [ & nodes[ 1 ] ] ] , payment_preimage)
1349+ . with_user_custom_tlvs ( recipient_onion_fields. user_custom_tlvs . clone ( ) )
13471350 . with_sender_custom_tlvs ( recipient_onion_fields. sender_custom_tlvs . clone ( ) )
13481351 ) ;
13491352}
0 commit comments