@@ -105,6 +105,10 @@ var (
105
105
"8820600" ,
106
106
"--taproot-assets.experimental.rfq.acceptpricedeviationppm=50000" ,
107
107
}... )
108
+
109
+ litdArgNoopHTLCs = []string {
110
+ "--taproot-assets.channel.noop-htlcs" ,
111
+ }
108
112
)
109
113
110
114
const (
@@ -1289,16 +1293,23 @@ func testCustomChannelsGroupTranchesForceClose(ctx context.Context,
1289
1293
// that transports assets from two tranches.
1290
1294
// ------------
1291
1295
const (
1292
- keySendAmount = 5000
1293
- numSends = 6
1294
- totalFirstSend = keySendAmount * numSends
1296
+ keySendAmount = 5000
1297
+ keySendSatAmount = 5000
1298
+ numSends = 6
1299
+ totalFirstSend = keySendAmount * numSends
1295
1300
)
1296
1301
for i := 0 ; i < numSends ; i ++ {
1297
1302
sendAssetKeySendPayment (
1298
1303
t .t , charlie , dave , keySendAmount , nil ,
1299
1304
fn .None [int64 ](), withGroupKey (groupKey ),
1300
1305
)
1301
1306
}
1307
+
1308
+ // With noop HTLCs implemented the sats balance of Dave will only
1309
+ // increase up to the reserve amount. Let's make a direct non-asset
1310
+ // keysend to make sure the sats balance is also enough.
1311
+ sendKeySendPayment (t .t , charlie , dave , keySendSatAmount )
1312
+
1302
1313
logBalanceGroup (t .t , nodes , groupIDs , "after keysend Charlie->Dave" )
1303
1314
1304
1315
// ------------
@@ -1538,8 +1549,9 @@ func testCustomChannelsGroupTranchesHtlcForceClose(ctx context.Context,
1538
1549
// First, we'll send over some funds from Charlie to Dave, as we want
1539
1550
// Dave to be able to extend HTLCs in the other direction.
1540
1551
const (
1541
- numPayments = 10
1542
- keySendAmount = 2_500
1552
+ numPayments = 10
1553
+ keySendAmount = 2_500
1554
+ keySendSatAmount = 5000
1543
1555
)
1544
1556
for i := 0 ; i < numPayments ; i ++ {
1545
1557
sendAssetKeySendPayment (
@@ -1548,6 +1560,11 @@ func testCustomChannelsGroupTranchesHtlcForceClose(ctx context.Context,
1548
1560
)
1549
1561
}
1550
1562
1563
+ // With noop HTLCs implemented the sats balance of Dave will only
1564
+ // increase up to the reserve amount. Let's make a direct non-asset
1565
+ // keysend to make sure the sats balance is also enough.
1566
+ sendKeySendPayment (t .t , charlie , dave , keySendSatAmount )
1567
+
1551
1568
// Now that both parties have some funds, we'll move onto the main test.
1552
1569
//
1553
1570
// We'll make 2 hodl invoice for each peer, so 4 total. From Charlie's
@@ -2079,6 +2096,8 @@ func testCustomChannelsBreach(ctx context.Context, net *NetworkHarness,
2079
2096
fmt .Sprintf (node .ListenerFormat , charliePort ),
2080
2097
))
2081
2098
2099
+ litdArgs = append (litdArgs , litdArgNoopHTLCs ... )
2100
+
2082
2101
// Charlie will be the breached party. We set --nolisten to ensure Dave
2083
2102
// won't be able to connect to him and trigger the channel protection
2084
2103
// logic automatically. We also can't have Charlie automatically
@@ -2295,6 +2314,8 @@ func testCustomChannelsLiquidityEdgeCasesCore(ctx context.Context,
2295
2314
fmt .Sprintf (node .ListenerFormat , charliePort ),
2296
2315
))
2297
2316
2317
+ litdArgs = append (litdArgs , litdArgNoopHTLCs ... )
2318
+
2298
2319
// The topology we are going for looks like the following:
2299
2320
//
2300
2321
// Charlie --[assets]--> Dave --[sats]--> Erin --[assets]--> Fabia
@@ -3227,6 +3248,8 @@ func testCustomChannelsStrictForwarding(ctx context.Context,
3227
3248
fmt .Sprintf (node .ListenerFormat , charliePort ),
3228
3249
))
3229
3250
3251
+ litdArgs = append (litdArgs , litdArgNoopHTLCs ... )
3252
+
3230
3253
// The topology we are going for looks like the following:
3231
3254
//
3232
3255
// Charlie --[assets]--> Dave --[sats]--> Erin --[assets]--> Fabia
@@ -4219,16 +4242,24 @@ func runCustomChannelsHtlcForceClose(ctx context.Context, t *harnessTest,
4219
4242
// First, we'll send over some funds from Alice to Bob, as we want Bob
4220
4243
// to be able to extend HTLCs in the other direction.
4221
4244
const (
4222
- numPayments = 10
4223
- keySendAmount = 2_500
4245
+ numPayments = 10
4246
+ keySendAssetAmount = 2_500
4247
+ keySendSatAmount = 5_000
4224
4248
)
4225
4249
for i := 0 ; i < numPayments ; i ++ {
4226
4250
sendAssetKeySendPayment (
4227
- t .t , alice , bob , keySendAmount , assetID ,
4251
+ t .t , alice , bob , keySendAssetAmount , assetID ,
4228
4252
fn .None [int64 ](),
4229
4253
)
4230
4254
}
4231
4255
4256
+ // With noop HTLCs implemented the sats balance of Bob will only
4257
+ // increase up to the reserve amount. Let's make a direct non-asset
4258
+ // keysend to make sure the sats balance is also enough.
4259
+ sendKeySendPayment (t .t , alice , bob , keySendSatAmount )
4260
+
4261
+ logBalance (t .t , nodes , assetID , "after keysends to Bob" )
4262
+
4232
4263
// Now that both parties have some funds, we'll move onto the main test.
4233
4264
//
4234
4265
// We'll make 2 hodl invoice for each peer, so 4 total. From Alice's
@@ -4717,6 +4748,8 @@ func testCustomChannelsSelfPayment(ctx context.Context, net *NetworkHarness,
4717
4748
fmt .Sprintf (node .ListenerFormat , alicePort ),
4718
4749
))
4719
4750
4751
+ litdArgs = append (litdArgs , litdArgNoopHTLCs ... )
4752
+
4720
4753
// Next, we'll make Alice and Bob, who will be the main nodes under
4721
4754
// test.
4722
4755
alice , err := net .NewNodeWithPort (
0 commit comments