@@ -1279,16 +1279,23 @@ func testCustomChannelsGroupTranchesForceClose(ctx context.Context,
1279
1279
// that transports assets from two tranches.
1280
1280
// ------------
1281
1281
const (
1282
- keySendAmount = 5000
1283
- numSends = 6
1284
- totalFirstSend = keySendAmount * numSends
1282
+ keySendAmount = 5000
1283
+ keySendSatAmount = 5000
1284
+ numSends = 6
1285
+ totalFirstSend = keySendAmount * numSends
1285
1286
)
1286
1287
for i := 0 ; i < numSends ; i ++ {
1287
1288
sendAssetKeySendPayment (
1288
1289
t .t , charlie , dave , keySendAmount , nil ,
1289
1290
fn .None [int64 ](), withGroupKey (groupKey ),
1290
1291
)
1291
1292
}
1293
+
1294
+ // With noop HTLCs implemented the sats balance of Dave will only
1295
+ // increase up to the reserve amount. Let's make a direct non-asset
1296
+ // keysend to make sure the sats balance is also enough.
1297
+ sendKeySendPayment (t .t , charlie , dave , keySendSatAmount )
1298
+
1292
1299
logBalanceGroup (t .t , nodes , groupIDs , "after keysend Charlie->Dave" )
1293
1300
1294
1301
// ------------
@@ -1528,8 +1535,9 @@ func testCustomChannelsGroupTranchesHtlcForceClose(ctx context.Context,
1528
1535
// First, we'll send over some funds from Charlie to Dave, as we want
1529
1536
// Dave to be able to extend HTLCs in the other direction.
1530
1537
const (
1531
- numPayments = 10
1532
- keySendAmount = 2_500
1538
+ numPayments = 10
1539
+ keySendAmount = 2_500
1540
+ keySendSatAmount = 5000
1533
1541
)
1534
1542
for i := 0 ; i < numPayments ; i ++ {
1535
1543
sendAssetKeySendPayment (
@@ -1538,6 +1546,11 @@ func testCustomChannelsGroupTranchesHtlcForceClose(ctx context.Context,
1538
1546
)
1539
1547
}
1540
1548
1549
+ // With noop HTLCs implemented the sats balance of Dave will only
1550
+ // increase up to the reserve amount. Let's make a direct non-asset
1551
+ // keysend to make sure the sats balance is also enough.
1552
+ sendKeySendPayment (t .t , charlie , dave , keySendSatAmount )
1553
+
1541
1554
// Now that both parties have some funds, we'll move onto the main test.
1542
1555
//
1543
1556
// We'll make 2 hodl invoice for each peer, so 4 total. From Charlie's
@@ -4040,16 +4053,24 @@ func runCustomChannelsHtlcForceClose(ctx context.Context, t *harnessTest,
4040
4053
// First, we'll send over some funds from Alice to Bob, as we want Bob
4041
4054
// to be able to extend HTLCs in the other direction.
4042
4055
const (
4043
- numPayments = 10
4044
- keySendAmount = 2_500
4056
+ numPayments = 10
4057
+ keySendAssetAmount = 2_500
4058
+ keySendSatAmount = 5_000
4045
4059
)
4046
4060
for i := 0 ; i < numPayments ; i ++ {
4047
4061
sendAssetKeySendPayment (
4048
- t .t , alice , bob , keySendAmount , assetID ,
4062
+ t .t , alice , bob , keySendAssetAmount , assetID ,
4049
4063
fn .None [int64 ](),
4050
4064
)
4051
4065
}
4052
4066
4067
+ // With noop HTLCs implemented the sats balance of Bob will only
4068
+ // increase up to the reserve amount. Let's make a direct non-asset
4069
+ // keysend to make sure the sats balance is also enough.
4070
+ sendKeySendPayment (t .t , alice , bob , keySendSatAmount )
4071
+
4072
+ logBalance (t .t , nodes , assetID , "after keysends to Bob" )
4073
+
4053
4074
// Now that both parties have some funds, we'll move onto the main test.
4054
4075
//
4055
4076
// We'll make 2 hodl invoice for each peer, so 4 total. From Alice's
0 commit comments