@@ -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
@@ -4119,16 +4132,24 @@ func runCustomChannelsHtlcForceClose(ctx context.Context, t *harnessTest,
4119
4132
// First, we'll send over some funds from Alice to Bob, as we want Bob
4120
4133
// to be able to extend HTLCs in the other direction.
4121
4134
const (
4122
- numPayments = 10
4123
- keySendAmount = 2_500
4135
+ numPayments = 10
4136
+ keySendAssetAmount = 2_500
4137
+ keySendSatAmount = 5_000
4124
4138
)
4125
4139
for i := 0 ; i < numPayments ; i ++ {
4126
4140
sendAssetKeySendPayment (
4127
- t .t , alice , bob , keySendAmount , assetID ,
4141
+ t .t , alice , bob , keySendAssetAmount , assetID ,
4128
4142
fn .None [int64 ](),
4129
4143
)
4130
4144
}
4131
4145
4146
+ // With noop HTLCs implemented the sats balance of Bob will only
4147
+ // increase up to the reserve amount. Let's make a direct non-asset
4148
+ // keysend to make sure the sats balance is also enough.
4149
+ sendKeySendPayment (t .t , alice , bob , keySendSatAmount )
4150
+
4151
+ logBalance (t .t , nodes , assetID , "after keysends to Bob" )
4152
+
4132
4153
// Now that both parties have some funds, we'll move onto the main test.
4133
4154
//
4134
4155
// We'll make 2 hodl invoice for each peer, so 4 total. From Alice's
0 commit comments