@@ -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 , lnrpc .PaymentFailureReason_FAILURE_REASON_INCORRECT_PAYMENT_DETAILS ),
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 , lnrpc .PaymentFailureReason_FAILURE_REASON_INCORRECT_PAYMENT_DETAILS ),
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 )
@@ -965,7 +961,7 @@ func testCustomChannelsGroupedAsset(_ context.Context, net *NetworkHarness,
965
961
// ------------
966
962
// Test case 4: Pay a normal invoice from Erin by Charlie.
967
963
// ------------
968
- paidAssetAmount = createAndPayNormalInvoice (
964
+ paidAssetAmount : = createAndPayNormalInvoice (
969
965
t .t , charlie , dave , erin , 20_000 , assetID , withSmallShards (),
970
966
)
971
967
logBalance (t .t , nodes , assetID , "after invoice" )
@@ -1959,17 +1955,6 @@ func testCustomChannelsLiquidityEdgeCases(ctxb context.Context,
1959
1955
t .t , charlie , invoiceResp .RHash , assetID , bigAssetAmount ,
1960
1956
)
1961
1957
1962
- // Edge case: Big normal invoice, paid by direct channel peer with
1963
- // assets.
1964
- const hugeAssetAmount = 1_000_000
1965
- _ = createAndPayNormalInvoice (
1966
- t .t , dave , charlie , charlie , hugeAssetAmount , assetID ,
1967
- withSmallShards (),
1968
- )
1969
-
1970
- logBalance (t .t , nodes , assetID , "after big asset payment (btc " +
1971
- "invoice, direct)" )
1972
-
1973
1958
// Dave sends 200k assets and 5k sats to Yara.
1974
1959
sendAssetKeySendPayment (
1975
1960
t .t , dave , yara , 2 * bigAssetAmount , assetID , fn .None [int64 ](),
0 commit comments