@@ -209,21 +209,21 @@ func testCustomChannelsLarge(_ context.Context, net *NetworkHarness,
209
209
invoiceResp := createAssetInvoice (
210
210
t .t , erin , fabia , fabiaInvoiceAssetAmount , assetID ,
211
211
)
212
- payInvoiceWithAssets (t .t , charlie , dave , invoiceResp , assetID )
212
+ payInvoiceWithAssets (t .t , charlie , dave , invoiceResp , assetID , false )
213
213
logBalance (t .t , nodes , assetID , "after invoice" )
214
214
215
215
invoiceResp2 := createAssetInvoice (
216
216
t .t , dave , charlie , fabiaInvoiceAssetAmount / 2 , assetID ,
217
217
)
218
- payInvoiceWithAssets (t .t , fabia , erin , invoiceResp2 , assetID )
218
+ payInvoiceWithAssets (t .t , fabia , erin , invoiceResp2 , assetID , false )
219
219
logBalance (t .t , nodes , assetID , "after invoice 2" )
220
220
221
221
// Now we send a large invoice from Charlie to Dave.
222
222
const largeInvoiceAmount = 100_000
223
223
invoiceResp3 := createAssetInvoice (
224
224
t .t , charlie , dave , largeInvoiceAmount , assetID ,
225
225
)
226
- payInvoiceWithAssets (t .t , charlie , dave , invoiceResp3 , assetID )
226
+ payInvoiceWithAssets (t .t , charlie , dave , invoiceResp3 , assetID , false )
227
227
logBalance (t .t , nodes , assetID , "after invoice 3" )
228
228
}
229
229
@@ -380,7 +380,7 @@ func testCustomChannels(_ context.Context, net *NetworkHarness,
380
380
invoiceResp := createAssetInvoice (
381
381
t .t , dave , charlie , keySendAmount , assetID ,
382
382
)
383
- payInvoiceWithAssets (t .t , dave , charlie , invoiceResp , assetID )
383
+ payInvoiceWithAssets (t .t , dave , charlie , invoiceResp , assetID , true )
384
384
385
385
charlieAssetBalance += keySendAmount
386
386
daveAssetBalance -= keySendAmount
@@ -395,7 +395,7 @@ func testCustomChannels(_ context.Context, net *NetworkHarness,
395
395
// invoice.
396
396
// ------------
397
397
paidAssetAmount := createAndPayNormalInvoice (
398
- t .t , charlie , dave , dave , 20_000 , assetID ,
398
+ t .t , charlie , dave , dave , 20_000 , assetID , true ,
399
399
)
400
400
logBalance (t .t , nodes , assetID , "after invoice" )
401
401
@@ -416,7 +416,7 @@ func testCustomChannels(_ context.Context, net *NetworkHarness,
416
416
invoiceResp = createAssetInvoice (
417
417
t .t , charlie , dave , daveInvoiceAssetAmount , assetID ,
418
418
)
419
- payInvoiceWithAssets (t .t , charlie , dave , invoiceResp , assetID )
419
+ payInvoiceWithAssets (t .t , charlie , dave , invoiceResp , assetID , true )
420
420
logBalance (t .t , nodes , assetID , "after invoice" )
421
421
422
422
charlieAssetBalance -= daveInvoiceAssetAmount
@@ -426,7 +426,7 @@ func testCustomChannels(_ context.Context, net *NetworkHarness,
426
426
// Test case 4: Pay a normal invoice from Erin by Charlie.
427
427
// ------------
428
428
paidAssetAmount = createAndPayNormalInvoice (
429
- t .t , charlie , dave , erin , 20_000 , assetID ,
429
+ t .t , charlie , dave , erin , 20_000 , assetID , true ,
430
430
)
431
431
logBalance (t .t , nodes , assetID , "after invoice" )
432
432
@@ -441,7 +441,7 @@ func testCustomChannels(_ context.Context, net *NetworkHarness,
441
441
invoiceResp = createAssetInvoice (
442
442
t .t , erin , fabia , fabiaInvoiceAssetAmount1 , assetID ,
443
443
)
444
- payInvoiceWithAssets (t .t , charlie , dave , invoiceResp , assetID )
444
+ payInvoiceWithAssets (t .t , charlie , dave , invoiceResp , assetID , true )
445
445
logBalance (t .t , nodes , assetID , "after invoice" )
446
446
447
447
charlieAssetBalance -= fabiaInvoiceAssetAmount1
@@ -475,7 +475,7 @@ func testCustomChannels(_ context.Context, net *NetworkHarness,
475
475
invoiceResp = createAssetInvoice (
476
476
t .t , erin , fabia , fabiaInvoiceAssetAmount3 , assetID ,
477
477
)
478
- payInvoiceWithAssets (t .t , charlie , dave , invoiceResp , assetID )
478
+ payInvoiceWithAssets (t .t , charlie , dave , invoiceResp , assetID , true )
479
479
logBalance (t .t , nodes , assetID , "after invoice" )
480
480
481
481
charlieAssetBalance -= fabiaInvoiceAssetAmount3
@@ -493,7 +493,7 @@ func testCustomChannels(_ context.Context, net *NetworkHarness,
493
493
invoiceResp = createAssetInvoice (
494
494
t .t , dave , yara , yaraInvoiceAssetAmount1 , assetID ,
495
495
)
496
- payInvoiceWithAssets (t .t , charlie , dave , invoiceResp , assetID )
496
+ payInvoiceWithAssets (t .t , charlie , dave , invoiceResp , assetID , true )
497
497
logBalance (t .t , nodes , assetID , "after asset-to-asset" )
498
498
499
499
charlieAssetBalance -= yaraInvoiceAssetAmount1
@@ -821,7 +821,7 @@ func testCustomChannelsGroupedAsset(_ context.Context, net *NetworkHarness,
821
821
// invoice.
822
822
// ------------
823
823
paidAssetAmount := createAndPayNormalInvoice (
824
- t .t , charlie , dave , dave , 20_000 , assetID ,
824
+ t .t , charlie , dave , dave , 20_000 , assetID , true ,
825
825
)
826
826
logBalance (t .t , nodes , assetID , "after invoice" )
827
827
@@ -842,7 +842,7 @@ func testCustomChannelsGroupedAsset(_ context.Context, net *NetworkHarness,
842
842
invoiceResp := createAssetInvoice (
843
843
t .t , charlie , dave , daveInvoiceAssetAmount , assetID ,
844
844
)
845
- payInvoiceWithAssets (t .t , charlie , dave , invoiceResp , assetID )
845
+ payInvoiceWithAssets (t .t , charlie , dave , invoiceResp , assetID , true )
846
846
logBalance (t .t , nodes , assetID , "after invoice" )
847
847
848
848
charlieAssetBalance -= daveInvoiceAssetAmount
@@ -852,7 +852,7 @@ func testCustomChannelsGroupedAsset(_ context.Context, net *NetworkHarness,
852
852
// Test case 4: Pay a normal invoice from Erin by Charlie.
853
853
// ------------
854
854
paidAssetAmount = createAndPayNormalInvoice (
855
- t .t , charlie , dave , erin , 20_000 , assetID ,
855
+ t .t , charlie , dave , erin , 20_000 , assetID , true ,
856
856
)
857
857
logBalance (t .t , nodes , assetID , "after invoice" )
858
858
@@ -867,7 +867,7 @@ func testCustomChannelsGroupedAsset(_ context.Context, net *NetworkHarness,
867
867
invoiceResp = createAssetInvoice (
868
868
t .t , erin , fabia , fabiaInvoiceAssetAmount1 , assetID ,
869
869
)
870
- payInvoiceWithAssets (t .t , charlie , dave , invoiceResp , assetID )
870
+ payInvoiceWithAssets (t .t , charlie , dave , invoiceResp , assetID , true )
871
871
logBalance (t .t , nodes , assetID , "after invoice" )
872
872
873
873
charlieAssetBalance -= fabiaInvoiceAssetAmount1
@@ -901,7 +901,7 @@ func testCustomChannelsGroupedAsset(_ context.Context, net *NetworkHarness,
901
901
invoiceResp = createAssetInvoice (
902
902
t .t , erin , fabia , fabiaInvoiceAssetAmount3 , assetID ,
903
903
)
904
- payInvoiceWithAssets (t .t , charlie , dave , invoiceResp , assetID )
904
+ payInvoiceWithAssets (t .t , charlie , dave , invoiceResp , assetID , true )
905
905
logBalance (t .t , nodes , assetID , "after invoice" )
906
906
907
907
charlieAssetBalance -= fabiaInvoiceAssetAmount3
@@ -919,7 +919,7 @@ func testCustomChannelsGroupedAsset(_ context.Context, net *NetworkHarness,
919
919
invoiceResp = createAssetInvoice (
920
920
t .t , dave , yara , yaraInvoiceAssetAmount1 , assetID ,
921
921
)
922
- payInvoiceWithAssets (t .t , charlie , dave , invoiceResp , assetID )
922
+ payInvoiceWithAssets (t .t , charlie , dave , invoiceResp , assetID , true )
923
923
logBalance (t .t , nodes , assetID , "after asset-to-asset" )
924
924
925
925
charlieAssetBalance -= yaraInvoiceAssetAmount1
0 commit comments