@@ -1289,16 +1289,23 @@ func testCustomChannelsGroupTranchesForceClose(ctx context.Context,
1289
1289
// that transports assets from two tranches.
1290
1290
// ------------
1291
1291
const (
1292
- keySendAmount = 5000
1293
- numSends = 6
1294
- totalFirstSend = keySendAmount * numSends
1292
+ keySendAmount = 5000
1293
+ keySendSatAmount = 5000
1294
+ numSends = 6
1295
+ totalFirstSend = keySendAmount * numSends
1295
1296
)
1296
1297
for i := 0 ; i < numSends ; i ++ {
1297
1298
sendAssetKeySendPayment (
1298
1299
t .t , charlie , dave , keySendAmount , nil ,
1299
1300
fn .None [int64 ](), withGroupKey (groupKey ),
1300
1301
)
1301
1302
}
1303
+
1304
+ // With noop HTLCs implemented the sats balance of Dave will only
1305
+ // increase up to the reserve amount. Let's make a direct non-asset
1306
+ // keysend to make sure the sats balance is also enough.
1307
+ sendKeySendPayment (t .t , charlie , dave , keySendSatAmount )
1308
+
1302
1309
logBalanceGroup (t .t , nodes , groupIDs , "after keysend Charlie->Dave" )
1303
1310
1304
1311
// ------------
@@ -1538,8 +1545,9 @@ func testCustomChannelsGroupTranchesHtlcForceClose(ctx context.Context,
1538
1545
// First, we'll send over some funds from Charlie to Dave, as we want
1539
1546
// Dave to be able to extend HTLCs in the other direction.
1540
1547
const (
1541
- numPayments = 10
1542
- keySendAmount = 2_500
1548
+ numPayments = 10
1549
+ keySendAmount = 2_500
1550
+ keySendSatAmount = 5000
1543
1551
)
1544
1552
for i := 0 ; i < numPayments ; i ++ {
1545
1553
sendAssetKeySendPayment (
@@ -1548,6 +1556,11 @@ func testCustomChannelsGroupTranchesHtlcForceClose(ctx context.Context,
1548
1556
)
1549
1557
}
1550
1558
1559
+ // With noop HTLCs implemented the sats balance of Dave will only
1560
+ // increase up to the reserve amount. Let's make a direct non-asset
1561
+ // keysend to make sure the sats balance is also enough.
1562
+ sendKeySendPayment (t .t , charlie , dave , keySendSatAmount )
1563
+
1551
1564
// Now that both parties have some funds, we'll move onto the main test.
1552
1565
//
1553
1566
// We'll make 2 hodl invoice for each peer, so 4 total. From Charlie's
@@ -4219,16 +4232,24 @@ func runCustomChannelsHtlcForceClose(ctx context.Context, t *harnessTest,
4219
4232
// First, we'll send over some funds from Alice to Bob, as we want Bob
4220
4233
// to be able to extend HTLCs in the other direction.
4221
4234
const (
4222
- numPayments = 10
4223
- keySendAmount = 2_500
4235
+ numPayments = 10
4236
+ keySendAssetAmount = 2_500
4237
+ keySendSatAmount = 5_000
4224
4238
)
4225
4239
for i := 0 ; i < numPayments ; i ++ {
4226
4240
sendAssetKeySendPayment (
4227
- t .t , alice , bob , keySendAmount , assetID ,
4241
+ t .t , alice , bob , keySendAssetAmount , assetID ,
4228
4242
fn .None [int64 ](),
4229
4243
)
4230
4244
}
4231
4245
4246
+ // With noop HTLCs implemented the sats balance of Bob will only
4247
+ // increase up to the reserve amount. Let's make a direct non-asset
4248
+ // keysend to make sure the sats balance is also enough.
4249
+ sendKeySendPayment (t .t , alice , bob , keySendSatAmount )
4250
+
4251
+ logBalance (t .t , nodes , assetID , "after keysends to Bob" )
4252
+
4232
4253
// Now that both parties have some funds, we'll move onto the main test.
4233
4254
//
4234
4255
// We'll make 2 hodl invoice for each peer, so 4 total. From Alice's
0 commit comments