@@ -2201,6 +2201,7 @@ fn auto_retry_partial_failure() {
2201
2201
channel_features: nodes[ 1 ] . node. channel_features( ) ,
2202
2202
fee_msat: amt_msat / 2 ,
2203
2203
cltv_expiry_delta: 100 ,
2204
+ announced: false ,
2204
2205
} ] , blinded_tail: None } ,
2205
2206
Path { hops: vec![ RouteHop {
2206
2207
pubkey: nodes[ 1 ] . node. get_our_node_id( ) ,
@@ -2209,6 +2210,7 @@ fn auto_retry_partial_failure() {
2209
2210
channel_features: nodes[ 1 ] . node. channel_features( ) ,
2210
2211
fee_msat: amt_msat / 2 ,
2211
2212
cltv_expiry_delta: 100 ,
2213
+ announced: false ,
2212
2214
} ] , blinded_tail: None } ,
2213
2215
] ,
2214
2216
route_params : Some ( route_params. clone ( ) ) ,
@@ -2222,6 +2224,7 @@ fn auto_retry_partial_failure() {
2222
2224
channel_features: nodes[ 1 ] . node. channel_features( ) ,
2223
2225
fee_msat: amt_msat / 4 ,
2224
2226
cltv_expiry_delta: 100 ,
2227
+ announced: false ,
2225
2228
} ] , blinded_tail: None } ,
2226
2229
Path { hops: vec![ RouteHop {
2227
2230
pubkey: nodes[ 1 ] . node. get_our_node_id( ) ,
@@ -2230,6 +2233,7 @@ fn auto_retry_partial_failure() {
2230
2233
channel_features: nodes[ 1 ] . node. channel_features( ) ,
2231
2234
fee_msat: amt_msat / 4 ,
2232
2235
cltv_expiry_delta: 100 ,
2236
+ announced: false ,
2233
2237
} ] , blinded_tail: None } ,
2234
2238
] ,
2235
2239
route_params : Some ( route_params. clone ( ) ) ,
@@ -2243,6 +2247,7 @@ fn auto_retry_partial_failure() {
2243
2247
channel_features: nodes[ 1 ] . node. channel_features( ) ,
2244
2248
fee_msat: amt_msat / 4 ,
2245
2249
cltv_expiry_delta: 100 ,
2250
+ announced: false ,
2246
2251
} ] , blinded_tail: None } ,
2247
2252
] ,
2248
2253
route_params : Some ( route_params. clone ( ) ) ,
@@ -2487,6 +2492,7 @@ fn retry_multi_path_single_failed_payment() {
2487
2492
channel_features: nodes[ 1 ] . node. channel_features( ) ,
2488
2493
fee_msat: 10_000 ,
2489
2494
cltv_expiry_delta: 100 ,
2495
+ announced: false ,
2490
2496
} ] , blinded_tail: None } ,
2491
2497
Path { hops: vec![ RouteHop {
2492
2498
pubkey: nodes[ 1 ] . node. get_our_node_id( ) ,
@@ -2495,6 +2501,7 @@ fn retry_multi_path_single_failed_payment() {
2495
2501
channel_features: nodes[ 1 ] . node. channel_features( ) ,
2496
2502
fee_msat: 100_000_001 , // Our default max-HTLC-value is 10% of the channel value, which this is one more than
2497
2503
cltv_expiry_delta: 100 ,
2504
+ announced: false ,
2498
2505
} ] , blinded_tail: None } ,
2499
2506
] ,
2500
2507
route_params : Some ( route_params. clone ( ) ) ,
@@ -2576,6 +2583,7 @@ fn immediate_retry_on_failure() {
2576
2583
channel_features: nodes[ 1 ] . node. channel_features( ) ,
2577
2584
fee_msat: 100_000_001 , // Our default max-HTLC-value is 10% of the channel value, which this is one more than
2578
2585
cltv_expiry_delta: 100 ,
2586
+ announced: false ,
2579
2587
} ] , blinded_tail: None } ,
2580
2588
] ,
2581
2589
route_params : Some ( RouteParameters :: from_payment_params_and_value (
@@ -2662,13 +2670,15 @@ fn no_extra_retries_on_back_to_back_fail() {
2662
2670
channel_features: nodes[ 1 ] . node. channel_features( ) ,
2663
2671
fee_msat: 0 , // nodes[1] will fail the payment as we don't pay its fee
2664
2672
cltv_expiry_delta: 100 ,
2673
+ announced: false ,
2665
2674
} , RouteHop {
2666
2675
pubkey: nodes[ 2 ] . node. get_our_node_id( ) ,
2667
2676
node_features: nodes[ 2 ] . node. node_features( ) ,
2668
2677
short_channel_id: chan_2_scid,
2669
2678
channel_features: nodes[ 2 ] . node. channel_features( ) ,
2670
2679
fee_msat: 100_000_000 ,
2671
2680
cltv_expiry_delta: 100 ,
2681
+ announced: false ,
2672
2682
} ] , blinded_tail: None } ,
2673
2683
Path { hops: vec![ RouteHop {
2674
2684
pubkey: nodes[ 1 ] . node. get_our_node_id( ) ,
@@ -2677,13 +2687,15 @@ fn no_extra_retries_on_back_to_back_fail() {
2677
2687
channel_features: nodes[ 1 ] . node. channel_features( ) ,
2678
2688
fee_msat: 0 , // nodes[1] will fail the payment as we don't pay its fee
2679
2689
cltv_expiry_delta: 100 ,
2690
+ announced: false ,
2680
2691
} , RouteHop {
2681
2692
pubkey: nodes[ 2 ] . node. get_our_node_id( ) ,
2682
2693
node_features: nodes[ 2 ] . node. node_features( ) ,
2683
2694
short_channel_id: chan_2_scid,
2684
2695
channel_features: nodes[ 2 ] . node. channel_features( ) ,
2685
2696
fee_msat: 100_000_000 ,
2686
2697
cltv_expiry_delta: 100 ,
2698
+ announced: false ,
2687
2699
} ] , blinded_tail: None }
2688
2700
] ,
2689
2701
route_params : Some ( RouteParameters :: from_payment_params_and_value (
@@ -2862,13 +2874,15 @@ fn test_simple_partial_retry() {
2862
2874
channel_features: nodes[ 1 ] . node. channel_features( ) ,
2863
2875
fee_msat: 0 , // nodes[1] will fail the payment as we don't pay its fee
2864
2876
cltv_expiry_delta: 100 ,
2877
+ announced: false ,
2865
2878
} , RouteHop {
2866
2879
pubkey: nodes[ 2 ] . node. get_our_node_id( ) ,
2867
2880
node_features: nodes[ 2 ] . node. node_features( ) ,
2868
2881
short_channel_id: chan_2_scid,
2869
2882
channel_features: nodes[ 2 ] . node. channel_features( ) ,
2870
2883
fee_msat: 100_000_000 ,
2871
2884
cltv_expiry_delta: 100 ,
2885
+ announced: false ,
2872
2886
} ] , blinded_tail: None } ,
2873
2887
Path { hops: vec![ RouteHop {
2874
2888
pubkey: nodes[ 1 ] . node. get_our_node_id( ) ,
@@ -2877,13 +2891,15 @@ fn test_simple_partial_retry() {
2877
2891
channel_features: nodes[ 1 ] . node. channel_features( ) ,
2878
2892
fee_msat: 100_000 ,
2879
2893
cltv_expiry_delta: 100 ,
2894
+ announced: false ,
2880
2895
} , RouteHop {
2881
2896
pubkey: nodes[ 2 ] . node. get_our_node_id( ) ,
2882
2897
node_features: nodes[ 2 ] . node. node_features( ) ,
2883
2898
short_channel_id: chan_2_scid,
2884
2899
channel_features: nodes[ 2 ] . node. channel_features( ) ,
2885
2900
fee_msat: 100_000_000 ,
2886
2901
cltv_expiry_delta: 100 ,
2902
+ announced: false ,
2887
2903
} ] , blinded_tail: None }
2888
2904
] ,
2889
2905
route_params : Some ( RouteParameters :: from_payment_params_and_value (
@@ -3026,13 +3042,15 @@ fn test_threaded_payment_retries() {
3026
3042
channel_features: nodes[ 1 ] . node. channel_features( ) ,
3027
3043
fee_msat: 0 ,
3028
3044
cltv_expiry_delta: 100 ,
3045
+ announced: false ,
3029
3046
} , RouteHop {
3030
3047
pubkey: nodes[ 3 ] . node. get_our_node_id( ) ,
3031
3048
node_features: nodes[ 2 ] . node. node_features( ) ,
3032
3049
short_channel_id: 42 , // Set a random SCID which nodes[1] will fail as unknown
3033
3050
channel_features: nodes[ 2 ] . node. channel_features( ) ,
3034
3051
fee_msat: amt_msat / 1000 ,
3035
3052
cltv_expiry_delta: 100 ,
3053
+ announced: false ,
3036
3054
} ] , blinded_tail: None } ,
3037
3055
Path { hops: vec![ RouteHop {
3038
3056
pubkey: nodes[ 2 ] . node. get_our_node_id( ) ,
@@ -3041,13 +3059,15 @@ fn test_threaded_payment_retries() {
3041
3059
channel_features: nodes[ 2 ] . node. channel_features( ) ,
3042
3060
fee_msat: 100_000 ,
3043
3061
cltv_expiry_delta: 100 ,
3062
+ announced: false ,
3044
3063
} , RouteHop {
3045
3064
pubkey: nodes[ 3 ] . node. get_our_node_id( ) ,
3046
3065
node_features: nodes[ 3 ] . node. node_features( ) ,
3047
3066
short_channel_id: chan_4_scid,
3048
3067
channel_features: nodes[ 3 ] . node. channel_features( ) ,
3049
3068
fee_msat: amt_msat - amt_msat / 1000 ,
3050
3069
cltv_expiry_delta: 100 ,
3070
+ announced: false ,
3051
3071
} ] , blinded_tail: None }
3052
3072
] ,
3053
3073
route_params : Some ( RouteParameters :: from_payment_params_and_value (
0 commit comments