@@ -482,14 +482,12 @@ func testCustomChannels(_ context.Context, net *NetworkHarness,
482
482
// a direct channel invoice payment with no RFQ SCID present in the
483
483
// invoice.
484
484
// ------------
485
- paidAssetAmount := createAndPayNormalInvoice (
485
+ createAndPayNormalInvoice (
486
486
t .t , charlie , dave , dave , 20_000 , assetID , withSmallShards (),
487
+ withFailure (lnrpc .Payment_FAILED , failureIncorrectDetails ),
487
488
)
488
489
logBalance (t .t , nodes , assetID , "after invoice" )
489
490
490
- charlieAssetBalance -= paidAssetAmount
491
- daveAssetBalance += paidAssetAmount
492
-
493
491
// We should also be able to do a multi-hop BTC only payment, paying an
494
492
// invoice from Erin by Charlie.
495
493
createAndPayNormalInvoiceWithBtc (t .t , charlie , erin , 2000 )
@@ -535,7 +533,7 @@ func testCustomChannels(_ context.Context, net *NetworkHarness,
535
533
// ------------
536
534
// Test case 4: Pay a normal invoice from Erin by Charlie.
537
535
// ------------
538
- paidAssetAmount = createAndPayNormalInvoice (
536
+ paidAssetAmount : = createAndPayNormalInvoice (
539
537
t .t , charlie , dave , erin , 20_000 , assetID , withSmallShards (),
540
538
)
541
539
logBalance (t .t , nodes , assetID , "after invoice" )
@@ -921,14 +919,12 @@ func testCustomChannelsGroupedAsset(_ context.Context, net *NetworkHarness,
921
919
// a direct channel invoice payment with no RFQ SCID present in the
922
920
// invoice.
923
921
// ------------
924
- paidAssetAmount := createAndPayNormalInvoice (
922
+ createAndPayNormalInvoice (
925
923
t .t , charlie , dave , dave , 20_000 , assetID , withSmallShards (),
924
+ withFailure (lnrpc .Payment_FAILED , failureIncorrectDetails ),
926
925
)
927
926
logBalance (t .t , nodes , assetID , "after invoice" )
928
927
929
- charlieAssetBalance -= paidAssetAmount
930
- daveAssetBalance += paidAssetAmount
931
-
932
928
// We should also be able to do a multi-hop BTC only payment, paying an
933
929
// invoice from Erin by Charlie.
934
930
createAndPayNormalInvoiceWithBtc (t .t , charlie , erin , 2000 )
@@ -966,7 +962,7 @@ func testCustomChannelsGroupedAsset(_ context.Context, net *NetworkHarness,
966
962
// ------------
967
963
// Test case 4: Pay a normal invoice from Erin by Charlie.
968
964
// ------------
969
- paidAssetAmount = createAndPayNormalInvoice (
965
+ paidAssetAmount : = createAndPayNormalInvoice (
970
966
t .t , charlie , dave , erin , 20_000 , assetID , withSmallShards (),
971
967
)
972
968
logBalance (t .t , nodes , assetID , "after invoice" )
@@ -1960,17 +1956,6 @@ func testCustomChannelsLiquidityEdgeCases(ctxb context.Context,
1960
1956
t .t , charlie , invoiceResp .RHash , assetID , bigAssetAmount ,
1961
1957
)
1962
1958
1963
- // Edge case: Big normal invoice, paid by direct channel peer with
1964
- // assets.
1965
- const hugeAssetAmount = 1_000_000
1966
- _ = createAndPayNormalInvoice (
1967
- t .t , dave , charlie , charlie , hugeAssetAmount , assetID ,
1968
- withSmallShards (),
1969
- )
1970
-
1971
- logBalance (t .t , nodes , assetID , "after big asset payment (btc " +
1972
- "invoice, direct)" )
1973
-
1974
1959
// Dave sends 200k assets and 5k sats to Yara.
1975
1960
sendAssetKeySendPayment (
1976
1961
t .t , dave , yara , 2 * bigAssetAmount , assetID , fn .None [int64 ](),
0 commit comments