@@ -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.
@@ -645,7 +647,7 @@ func runMultiHopReceiverPreimageClaim(ht *lntest.HarnessTest,
645
647
TimeoutSeconds : 60 ,
646
648
FeeLimitMsat : noFeeLimitMsat ,
647
649
}
648
- alice . RPC . SendPayment ( req )
650
+ ht . SendPaymentAssertInflight ( alice , req )
649
651
650
652
// At this point, all 3 nodes should now have an active channel with
651
653
// the created HTLC pending on all of them.
@@ -1006,7 +1008,7 @@ func runLocalForceCloseBeforeHtlcTimeout(ht *lntest.HarnessTest,
1006
1008
FeeLimitMsat : noFeeLimitMsat ,
1007
1009
RouteHints : routeHints ,
1008
1010
}
1009
- alice . RPC . SendPayment ( req )
1011
+ ht . SendPaymentAssertInflight ( alice , req )
1010
1012
1011
1013
// Once the HTLC has cleared, all channels in our mini network should
1012
1014
// have the it locked in.
@@ -1335,7 +1337,7 @@ func runRemoteForceCloseBeforeHtlcTimeout(ht *lntest.HarnessTest,
1335
1337
TimeoutSeconds : 60 ,
1336
1338
FeeLimitMsat : noFeeLimitMsat ,
1337
1339
}
1338
- alice . RPC . SendPayment ( req )
1340
+ ht . SendPaymentAssertInflight ( alice , req )
1339
1341
1340
1342
// Once the HTLC has cleared, all the nodes in our mini network should
1341
1343
// show that the HTLC has been locked in.
@@ -1594,7 +1596,7 @@ func runLocalClaimIncomingHTLC(ht *lntest.HarnessTest,
1594
1596
TimeoutSeconds : 60 ,
1595
1597
FeeLimitMsat : noFeeLimitMsat ,
1596
1598
}
1597
- alice . RPC . SendPayment ( req )
1599
+ ht . SendPaymentAssertInflight ( alice , req )
1598
1600
1599
1601
// At this point, all 3 nodes should now have an active channel with
1600
1602
// the created HTLC pending on all of them.
@@ -1897,7 +1899,7 @@ func runLocalClaimIncomingHTLCLeased(ht *lntest.HarnessTest,
1897
1899
TimeoutSeconds : 60 ,
1898
1900
FeeLimitMsat : noFeeLimitMsat ,
1899
1901
}
1900
- alice . RPC . SendPayment ( req )
1902
+ ht . SendPaymentAssertInflight ( alice , req )
1901
1903
1902
1904
// At this point, all 3 nodes should now have an active channel with
1903
1905
// the created HTLC pending on all of them.
@@ -2252,7 +2254,7 @@ func runLocalPreimageClaim(ht *lntest.HarnessTest,
2252
2254
TimeoutSeconds : 60 ,
2253
2255
FeeLimitMsat : noFeeLimitMsat ,
2254
2256
}
2255
- alice . RPC . SendPayment ( req )
2257
+ ht . SendPaymentAssertInflight ( alice , req )
2256
2258
2257
2259
// At this point, all 3 nodes should now have an active channel with
2258
2260
// the created HTLC pending on all of them.
@@ -2535,7 +2537,7 @@ func runLocalPreimageClaimLeased(ht *lntest.HarnessTest,
2535
2537
TimeoutSeconds : 60 ,
2536
2538
FeeLimitMsat : noFeeLimitMsat ,
2537
2539
}
2538
- alice . RPC . SendPayment ( req )
2540
+ ht . SendPaymentAssertInflight ( alice , req )
2539
2541
2540
2542
// At this point, all 3 nodes should now have an active channel with
2541
2543
// the created HTLC pending on all of them.
@@ -2982,7 +2984,7 @@ func runHtlcAggregation(ht *lntest.HarnessTest,
2982
2984
TimeoutSeconds : 60 ,
2983
2985
FeeLimitMsat : noFeeLimitMsat ,
2984
2986
}
2985
- alice . RPC . SendPayment ( req )
2987
+ ht . SendPaymentAssertInflight ( alice , req )
2986
2988
}
2987
2989
2988
2990
// And Carol will pay Alice's.
@@ -2992,7 +2994,7 @@ func runHtlcAggregation(ht *lntest.HarnessTest,
2992
2994
TimeoutSeconds : 60 ,
2993
2995
FeeLimitMsat : noFeeLimitMsat ,
2994
2996
}
2995
- carol . RPC . SendPayment ( req )
2997
+ ht . SendPaymentAssertInflight ( carol , req )
2996
2998
}
2997
2999
2998
3000
// At this point, all 3 nodes should now the HTLCs active on their
0 commit comments