@@ -222,7 +222,10 @@ func testCustomChannelsLarge(_ context.Context, net *NetworkHarness,
222222 invoiceResp := createAssetInvoice (
223223 t .t , erin , fabia , fabiaInvoiceAssetAmount , assetID ,
224224 )
225- payInvoiceWithAssets (t .t , charlie , dave , invoiceResp , assetID , false )
225+ payInvoiceWithAssets (
226+ t .t , charlie , dave , invoiceResp .PaymentRequest , assetID , false ,
227+ fn .None [lnrpc.Payment_PaymentStatus ](),
228+ )
226229 logBalance (t .t , nodes , assetID , "after invoice" )
227230
228231 invoiceResp2 := createAssetInvoice (
@@ -234,15 +237,21 @@ func testCustomChannelsLarge(_ context.Context, net *NetworkHarness,
234237 // amount of zero.
235238 time .Sleep (time .Second * 1 )
236239
237- payInvoiceWithAssets (t .t , fabia , erin , invoiceResp2 , assetID , false )
240+ payInvoiceWithAssets (
241+ t .t , fabia , erin , invoiceResp2 .PaymentRequest , assetID , false ,
242+ fn .None [lnrpc.Payment_PaymentStatus ](),
243+ )
238244 logBalance (t .t , nodes , assetID , "after invoice 2" )
239245
240246 // Now we send a large invoice from Charlie to Dave.
241247 const largeInvoiceAmount = 100_000
242248 invoiceResp3 := createAssetInvoice (
243249 t .t , charlie , dave , largeInvoiceAmount , assetID ,
244250 )
245- payInvoiceWithAssets (t .t , charlie , dave , invoiceResp3 , assetID , false )
251+ payInvoiceWithAssets (
252+ t .t , charlie , dave , invoiceResp3 .PaymentRequest , assetID , false ,
253+ fn .None [lnrpc.Payment_PaymentStatus ](),
254+ )
246255 logBalance (t .t , nodes , assetID , "after invoice 3" )
247256
248257 // Make sure the invoice on the receiver side and the payment on the
@@ -431,7 +440,10 @@ func testCustomChannels(_ context.Context, net *NetworkHarness,
431440 invoiceResp := createAssetInvoice (
432441 t .t , dave , charlie , charlieInvoiceAmount , assetID ,
433442 )
434- payInvoiceWithAssets (t .t , dave , charlie , invoiceResp , assetID , true )
443+ payInvoiceWithAssets (
444+ t .t , dave , charlie , invoiceResp .PaymentRequest , assetID , true ,
445+ fn .None [lnrpc.Payment_PaymentStatus ](),
446+ )
435447 logBalance (t .t , nodes , assetID , "after invoice back" )
436448
437449 // Make sure the invoice on the receiver side and the payment on the
@@ -493,7 +505,10 @@ func testCustomChannels(_ context.Context, net *NetworkHarness,
493505 invoiceResp = createAssetInvoice (
494506 t .t , charlie , dave , daveInvoiceAssetAmount , assetID ,
495507 )
496- payInvoiceWithAssets (t .t , charlie , dave , invoiceResp , assetID , true )
508+ payInvoiceWithAssets (
509+ t .t , charlie , dave , invoiceResp .PaymentRequest , assetID , true ,
510+ fn .None [lnrpc.Payment_PaymentStatus ](),
511+ )
497512 logBalance (t .t , nodes , assetID , "after invoice" )
498513
499514 charlieAssetBalance -= daveInvoiceAssetAmount
@@ -535,7 +550,10 @@ func testCustomChannels(_ context.Context, net *NetworkHarness,
535550 invoiceResp = createAssetInvoice (
536551 t .t , erin , fabia , fabiaInvoiceAssetAmount1 , assetID ,
537552 )
538- payInvoiceWithAssets (t .t , charlie , dave , invoiceResp , assetID , true )
553+ payInvoiceWithAssets (
554+ t .t , charlie , dave , invoiceResp .PaymentRequest , assetID , true ,
555+ fn .None [lnrpc.Payment_PaymentStatus ](),
556+ )
539557 logBalance (t .t , nodes , assetID , "after invoice" )
540558
541559 charlieAssetBalance -= fabiaInvoiceAssetAmount1
@@ -569,7 +587,10 @@ func testCustomChannels(_ context.Context, net *NetworkHarness,
569587 invoiceResp = createAssetInvoice (
570588 t .t , erin , fabia , fabiaInvoiceAssetAmount3 , assetID ,
571589 )
572- payInvoiceWithAssets (t .t , charlie , dave , invoiceResp , assetID , true )
590+ payInvoiceWithAssets (
591+ t .t , charlie , dave , invoiceResp .PaymentRequest , assetID , true ,
592+ fn .None [lnrpc.Payment_PaymentStatus ](),
593+ )
573594 logBalance (t .t , nodes , assetID , "after invoice" )
574595
575596 charlieAssetBalance -= fabiaInvoiceAssetAmount3
@@ -587,7 +608,10 @@ func testCustomChannels(_ context.Context, net *NetworkHarness,
587608 invoiceResp = createAssetInvoice (
588609 t .t , dave , yara , yaraInvoiceAssetAmount1 , assetID ,
589610 )
590- payInvoiceWithAssets (t .t , charlie , dave , invoiceResp , assetID , true )
611+ payInvoiceWithAssets (
612+ t .t , charlie , dave , invoiceResp .PaymentRequest , assetID , true ,
613+ fn .None [lnrpc.Payment_PaymentStatus ](),
614+ )
591615 logBalance (t .t , nodes , assetID , "after asset-to-asset" )
592616
593617 charlieAssetBalance -= yaraInvoiceAssetAmount1
@@ -920,7 +944,10 @@ func testCustomChannelsGroupedAsset(_ context.Context, net *NetworkHarness,
920944 invoiceResp := createAssetInvoice (
921945 t .t , charlie , dave , daveInvoiceAssetAmount , assetID ,
922946 )
923- payInvoiceWithAssets (t .t , charlie , dave , invoiceResp , assetID , true )
947+ payInvoiceWithAssets (
948+ t .t , charlie , dave , invoiceResp .PaymentRequest , assetID , true ,
949+ fn .None [lnrpc.Payment_PaymentStatus ](),
950+ )
924951 logBalance (t .t , nodes , assetID , "after invoice" )
925952
926953 // Make sure the invoice on the receiver side and the payment on the
@@ -955,7 +982,10 @@ func testCustomChannelsGroupedAsset(_ context.Context, net *NetworkHarness,
955982 invoiceResp = createAssetInvoice (
956983 t .t , erin , fabia , fabiaInvoiceAssetAmount1 , assetID ,
957984 )
958- payInvoiceWithAssets (t .t , charlie , dave , invoiceResp , assetID , true )
985+ payInvoiceWithAssets (
986+ t .t , charlie , dave , invoiceResp .PaymentRequest , assetID , true ,
987+ fn .None [lnrpc.Payment_PaymentStatus ](),
988+ )
959989 logBalance (t .t , nodes , assetID , "after invoice" )
960990
961991 charlieAssetBalance -= fabiaInvoiceAssetAmount1
@@ -989,7 +1019,10 @@ func testCustomChannelsGroupedAsset(_ context.Context, net *NetworkHarness,
9891019 invoiceResp = createAssetInvoice (
9901020 t .t , erin , fabia , fabiaInvoiceAssetAmount3 , assetID ,
9911021 )
992- payInvoiceWithAssets (t .t , charlie , dave , invoiceResp , assetID , true )
1022+ payInvoiceWithAssets (
1023+ t .t , charlie , dave , invoiceResp .PaymentRequest , assetID , true ,
1024+ fn .None [lnrpc.Payment_PaymentStatus ](),
1025+ )
9931026 logBalance (t .t , nodes , assetID , "after invoice" )
9941027
9951028 charlieAssetBalance -= fabiaInvoiceAssetAmount3
@@ -1007,7 +1040,10 @@ func testCustomChannelsGroupedAsset(_ context.Context, net *NetworkHarness,
10071040 invoiceResp = createAssetInvoice (
10081041 t .t , dave , yara , yaraInvoiceAssetAmount1 , assetID ,
10091042 )
1010- payInvoiceWithAssets (t .t , charlie , dave , invoiceResp , assetID , true )
1043+ payInvoiceWithAssets (
1044+ t .t , charlie , dave , invoiceResp .PaymentRequest , assetID , true ,
1045+ fn .None [lnrpc.Payment_PaymentStatus ](),
1046+ )
10111047 logBalance (t .t , nodes , assetID , "after asset-to-asset" )
10121048
10131049 charlieAssetBalance -= yaraInvoiceAssetAmount1
@@ -1916,7 +1952,11 @@ func testCustomChannelsLiquidityEdgeCases(_ context.Context,
19161952 invoiceResp := createAssetInvoice (
19171953 t .t , charlie , dave , bigAssetAmount , assetID ,
19181954 )
1919- payInvoiceWithAssets (t .t , charlie , dave , invoiceResp , assetID , false )
1955+
1956+ payInvoiceWithAssets (
1957+ t .t , charlie , dave , invoiceResp .PaymentRequest , assetID , false ,
1958+ fn .None [lnrpc.Payment_PaymentStatus ](),
1959+ )
19201960
19211961 logBalance (t .t , nodes , assetID , "after big asset payment (asset " +
19221962 "invoice, direct)" )
@@ -1959,7 +1999,10 @@ func testCustomChannelsLiquidityEdgeCases(_ context.Context,
19591999 t .t , dave , charlie , bigAssetAmount , assetID ,
19602000 )
19612001
1962- payInvoiceWithAssets (t .t , yara , dave , invoiceResp , assetID , false )
2002+ payInvoiceWithAssets (
2003+ t .t , yara , dave , invoiceResp .PaymentRequest , assetID , false ,
2004+ fn .None [lnrpc.Payment_PaymentStatus ](),
2005+ )
19632006
19642007 logBalance (t .t , nodes , assetID , "after big asset payment (asset " +
19652008 "invoice, multi-hop)" )
0 commit comments