@@ -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 (
@@ -1182,6 +1186,8 @@ func testCustomChannelsGroupTranchesForceClose(ctx context.Context,
1182
1186
lndArgs := slices .Clone (lndArgsTemplate )
1183
1187
litdArgs := slices .Clone (litdArgsTemplate )
1184
1188
1189
+ litdArgs = append (litdArgs , litdArgNoopHTLCs ... )
1190
+
1185
1191
// We use Charlie as the proof courier. But in order for Charlie to also
1186
1192
// use itself, we need to define its port upfront.
1187
1193
charliePort := port .NextAvailablePort ()
@@ -1289,16 +1295,23 @@ func testCustomChannelsGroupTranchesForceClose(ctx context.Context,
1289
1295
// that transports assets from two tranches.
1290
1296
// ------------
1291
1297
const (
1292
- keySendAmount = 5000
1293
- numSends = 6
1294
- totalFirstSend = keySendAmount * numSends
1298
+ keySendAmount = 5000
1299
+ keySendSatAmount = 5000
1300
+ numSends = 6
1301
+ totalFirstSend = keySendAmount * numSends
1295
1302
)
1296
1303
for i := 0 ; i < numSends ; i ++ {
1297
1304
sendAssetKeySendPayment (
1298
1305
t .t , charlie , dave , keySendAmount , nil ,
1299
1306
fn .None [int64 ](), withGroupKey (groupKey ),
1300
1307
)
1301
1308
}
1309
+
1310
+ // With noop HTLCs implemented the sats balance of Dave will only
1311
+ // increase up to the reserve amount. Let's make a direct non-asset
1312
+ // keysend to make sure the sats balance is also enough.
1313
+ sendKeySendPayment (t .t , charlie , dave , keySendSatAmount )
1314
+
1302
1315
logBalanceGroup (t .t , nodes , groupIDs , "after keysend Charlie->Dave" )
1303
1316
1304
1317
// ------------
@@ -1538,8 +1551,9 @@ func testCustomChannelsGroupTranchesHtlcForceClose(ctx context.Context,
1538
1551
// First, we'll send over some funds from Charlie to Dave, as we want
1539
1552
// Dave to be able to extend HTLCs in the other direction.
1540
1553
const (
1541
- numPayments = 10
1542
- keySendAmount = 2_500
1554
+ numPayments = 10
1555
+ keySendAmount = 2_500
1556
+ keySendSatAmount = 5000
1543
1557
)
1544
1558
for i := 0 ; i < numPayments ; i ++ {
1545
1559
sendAssetKeySendPayment (
@@ -1548,6 +1562,11 @@ func testCustomChannelsGroupTranchesHtlcForceClose(ctx context.Context,
1548
1562
)
1549
1563
}
1550
1564
1565
+ // With noop HTLCs implemented the sats balance of Dave will only
1566
+ // increase up to the reserve amount. Let's make a direct non-asset
1567
+ // keysend to make sure the sats balance is also enough.
1568
+ sendKeySendPayment (t .t , charlie , dave , keySendSatAmount )
1569
+
1551
1570
// Now that both parties have some funds, we'll move onto the main test.
1552
1571
//
1553
1572
// We'll make 2 hodl invoice for each peer, so 4 total. From Charlie's
@@ -2079,6 +2098,8 @@ func testCustomChannelsBreach(ctx context.Context, net *NetworkHarness,
2079
2098
fmt .Sprintf (node .ListenerFormat , charliePort ),
2080
2099
))
2081
2100
2101
+ litdArgs = append (litdArgs , litdArgNoopHTLCs ... )
2102
+
2082
2103
// Charlie will be the breached party. We set --nolisten to ensure Dave
2083
2104
// won't be able to connect to him and trigger the channel protection
2084
2105
// logic automatically. We also can't have Charlie automatically
@@ -2295,6 +2316,8 @@ func testCustomChannelsLiquidityEdgeCasesCore(ctx context.Context,
2295
2316
fmt .Sprintf (node .ListenerFormat , charliePort ),
2296
2317
))
2297
2318
2319
+ litdArgs = append (litdArgs , litdArgNoopHTLCs ... )
2320
+
2298
2321
// The topology we are going for looks like the following:
2299
2322
//
2300
2323
// Charlie --[assets]--> Dave --[sats]--> Erin --[assets]--> Fabia
@@ -3227,6 +3250,8 @@ func testCustomChannelsStrictForwarding(ctx context.Context,
3227
3250
fmt .Sprintf (node .ListenerFormat , charliePort ),
3228
3251
))
3229
3252
3253
+ litdArgs = append (litdArgs , litdArgNoopHTLCs ... )
3254
+
3230
3255
// The topology we are going for looks like the following:
3231
3256
//
3232
3257
// Charlie --[assets]--> Dave --[sats]--> Erin --[assets]--> Fabia
@@ -4139,6 +4164,8 @@ func runCustomChannelsHtlcForceClose(ctx context.Context, t *harnessTest,
4139
4164
lndArgs := slices .Clone (lndArgsTemplate )
4140
4165
litdArgs := slices .Clone (litdArgsTemplate )
4141
4166
4167
+ litdArgs = append (litdArgs , litdArgNoopHTLCs ... )
4168
+
4142
4169
// Zane will serve as our designated Universe node.
4143
4170
zane , err := net .NewNode (
4144
4171
t .t , "Zane" , lndArgs , false , true , litdArgs ... ,
@@ -4219,16 +4246,24 @@ func runCustomChannelsHtlcForceClose(ctx context.Context, t *harnessTest,
4219
4246
// First, we'll send over some funds from Alice to Bob, as we want Bob
4220
4247
// to be able to extend HTLCs in the other direction.
4221
4248
const (
4222
- numPayments = 10
4223
- keySendAmount = 2_500
4249
+ numPayments = 10
4250
+ keySendAssetAmount = 2_500
4251
+ keySendSatAmount = 5_000
4224
4252
)
4225
4253
for i := 0 ; i < numPayments ; i ++ {
4226
4254
sendAssetKeySendPayment (
4227
- t .t , alice , bob , keySendAmount , assetID ,
4255
+ t .t , alice , bob , keySendAssetAmount , assetID ,
4228
4256
fn .None [int64 ](),
4229
4257
)
4230
4258
}
4231
4259
4260
+ // With noop HTLCs implemented the sats balance of Bob will only
4261
+ // increase up to the reserve amount. Let's make a direct non-asset
4262
+ // keysend to make sure the sats balance is also enough.
4263
+ sendKeySendPayment (t .t , alice , bob , keySendSatAmount )
4264
+
4265
+ logBalance (t .t , nodes , assetID , "after keysends to Bob" )
4266
+
4232
4267
// Now that both parties have some funds, we'll move onto the main test.
4233
4268
//
4234
4269
// We'll make 2 hodl invoice for each peer, so 4 total. From Alice's
@@ -4717,6 +4752,8 @@ func testCustomChannelsSelfPayment(ctx context.Context, net *NetworkHarness,
4717
4752
fmt .Sprintf (node .ListenerFormat , alicePort ),
4718
4753
))
4719
4754
4755
+ litdArgs = append (litdArgs , litdArgNoopHTLCs ... )
4756
+
4720
4757
// Next, we'll make Alice and Bob, who will be the main nodes under
4721
4758
// test.
4722
4759
alice , err := net .NewNodeWithPort (
0 commit comments