@@ -298,25 +298,27 @@ func runLocalClaimOutgoingHTLC(ht *lntest.HarnessTest,
298
298
routeHints = makeRouteHints (bob , carol , params .ZeroConf )
299
299
}
300
300
301
- alice . RPC . SendPayment ( & routerrpc.SendPaymentRequest {
301
+ req := & routerrpc.SendPaymentRequest {
302
302
Dest : carolPubKey ,
303
303
Amt : int64 (dustHtlcAmt ),
304
304
PaymentHash : dustPayHash ,
305
305
FinalCltvDelta : finalCltvDelta ,
306
306
TimeoutSeconds : 60 ,
307
307
FeeLimitMsat : noFeeLimitMsat ,
308
308
RouteHints : routeHints ,
309
- })
309
+ }
310
+ ht .SendPaymentAssertInflight (alice , req )
310
311
311
- alice . RPC . SendPayment ( & routerrpc.SendPaymentRequest {
312
+ req = & routerrpc.SendPaymentRequest {
312
313
Dest : carolPubKey ,
313
314
Amt : int64 (htlcAmt ),
314
315
PaymentHash : payHash ,
315
316
FinalCltvDelta : finalCltvDelta ,
316
317
TimeoutSeconds : 60 ,
317
318
FeeLimitMsat : noFeeLimitMsat ,
318
319
RouteHints : routeHints ,
319
- })
320
+ }
321
+ ht .SendPaymentAssertInflight (alice , req )
320
322
321
323
// Verify that all nodes in the path now have two HTLC's with the
322
324
// proper parameters.
@@ -642,7 +644,7 @@ func runMultiHopReceiverPreimageClaim(ht *lntest.HarnessTest,
642
644
TimeoutSeconds : 60 ,
643
645
FeeLimitMsat : noFeeLimitMsat ,
644
646
}
645
- alice . RPC . SendPayment ( req )
647
+ ht . SendPaymentAssertInflight ( alice , req )
646
648
647
649
// At this point, all 3 nodes should now have an active channel with
648
650
// the created HTLC pending on all of them.
@@ -985,7 +987,7 @@ func runLocalForceCloseBeforeHtlcTimeout(ht *lntest.HarnessTest,
985
987
FeeLimitMsat : noFeeLimitMsat ,
986
988
RouteHints : routeHints ,
987
989
}
988
- alice . RPC . SendPayment ( req )
990
+ ht . SendPaymentAssertInflight ( alice , req )
989
991
990
992
// Once the HTLC has cleared, all channels in our mini network should
991
993
// have the it locked in.
@@ -1314,7 +1316,7 @@ func runRemoteForceCloseBeforeHtlcTimeout(ht *lntest.HarnessTest,
1314
1316
TimeoutSeconds : 60 ,
1315
1317
FeeLimitMsat : noFeeLimitMsat ,
1316
1318
}
1317
- alice . RPC . SendPayment ( req )
1319
+ ht . SendPaymentAssertInflight ( alice , req )
1318
1320
1319
1321
// Once the HTLC has cleared, all the nodes in our mini network should
1320
1322
// show that the HTLC has been locked in.
@@ -1580,7 +1582,7 @@ func runLocalClaimIncomingHTLC(ht *lntest.HarnessTest,
1580
1582
TimeoutSeconds : 60 ,
1581
1583
FeeLimitMsat : noFeeLimitMsat ,
1582
1584
}
1583
- alice . RPC . SendPayment ( req )
1585
+ ht . SendPaymentAssertInflight ( alice , req )
1584
1586
1585
1587
// At this point, all 3 nodes should now have an active channel with
1586
1588
// the created HTLC pending on all of them.
@@ -1867,7 +1869,7 @@ func runLocalClaimIncomingHTLCLeased(ht *lntest.HarnessTest,
1867
1869
TimeoutSeconds : 60 ,
1868
1870
FeeLimitMsat : noFeeLimitMsat ,
1869
1871
}
1870
- alice . RPC . SendPayment ( req )
1872
+ ht . SendPaymentAssertInflight ( alice , req )
1871
1873
1872
1874
// At this point, all 3 nodes should now have an active channel with
1873
1875
// the created HTLC pending on all of them.
@@ -2214,7 +2216,7 @@ func runLocalPreimageClaim(ht *lntest.HarnessTest,
2214
2216
TimeoutSeconds : 60 ,
2215
2217
FeeLimitMsat : noFeeLimitMsat ,
2216
2218
}
2217
- alice . RPC . SendPayment ( req )
2219
+ ht . SendPaymentAssertInflight ( alice , req )
2218
2220
2219
2221
// At this point, all 3 nodes should now have an active channel with
2220
2222
// the created HTLC pending on all of them.
@@ -2465,7 +2467,7 @@ func runLocalPreimageClaimLeased(ht *lntest.HarnessTest,
2465
2467
TimeoutSeconds : 60 ,
2466
2468
FeeLimitMsat : noFeeLimitMsat ,
2467
2469
}
2468
- alice . RPC . SendPayment ( req )
2470
+ ht . SendPaymentAssertInflight ( alice , req )
2469
2471
2470
2472
// At this point, all 3 nodes should now have an active channel with
2471
2473
// the created HTLC pending on all of them.
@@ -2904,7 +2906,7 @@ func runHtlcAggregation(ht *lntest.HarnessTest,
2904
2906
TimeoutSeconds : 60 ,
2905
2907
FeeLimitMsat : noFeeLimitMsat ,
2906
2908
}
2907
- alice . RPC . SendPayment ( req )
2909
+ ht . SendPaymentAssertInflight ( alice , req )
2908
2910
}
2909
2911
2910
2912
// And Carol will pay Alice's.
@@ -2914,7 +2916,7 @@ func runHtlcAggregation(ht *lntest.HarnessTest,
2914
2916
TimeoutSeconds : 60 ,
2915
2917
FeeLimitMsat : noFeeLimitMsat ,
2916
2918
}
2917
- carol . RPC . SendPayment ( req )
2919
+ ht . SendPaymentAssertInflight ( carol , req )
2918
2920
}
2919
2921
2920
2922
// At this point, all 3 nodes should now the HTLCs active on their
0 commit comments