File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -3299,11 +3299,7 @@ fn test_threaded_payment_retries() {
3299
3299
maybe_announced_channel: true ,
3300
3300
} ] , blinded_tail: None }
3301
3301
] ,
3302
- route_params : Some ( RouteParameters {
3303
- payment_params : PaymentParameters :: from_node_id ( nodes[ 1 ] . node . get_our_node_id ( ) , TEST_FINAL_CLTV ) ,
3304
- final_value_msat : amt_msat - amt_msat / 1000 ,
3305
- max_total_routing_fee_msat : Some ( 500_000 ) ,
3306
- } ) ,
3302
+ route_params : Some ( route_params. clone ( ) ) ,
3307
3303
} ;
3308
3304
nodes[ 0 ] . router . expect_find_route ( route_params. clone ( ) , Ok ( route. clone ( ) ) ) ;
3309
3305
@@ -3322,6 +3318,7 @@ fn test_threaded_payment_retries() {
3322
3318
3323
3319
// from here on out, the retry `RouteParameters` amount will be amt/1000
3324
3320
route_params. final_value_msat /= 1000 ;
3321
+ route. route_params . as_mut ( ) . unwrap ( ) . final_value_msat /= 1000 ;
3325
3322
route. paths . pop ( ) ;
3326
3323
3327
3324
let end_time = Instant :: now ( ) + Duration :: from_secs ( 1 ) ;
You can’t perform that action at this time.
0 commit comments