@@ -260,10 +260,11 @@ func testCustomChannelsLarge(_ context.Context, net *NetworkHarness,
260260 // sender side show the individual HTLCs that arrived for it and that
261261 // they show the correct asset amounts when decoded.
262262 assertInvoiceHtlcAssets (
263- t .t , dave , invoiceResp3 , assetID , largeInvoiceAmount ,
263+ t .t , dave , invoiceResp3 , assetID , nil , largeInvoiceAmount ,
264264 )
265265 assertPaymentHtlcAssets (
266- t .t , charlie , invoiceResp3 .RHash , assetID , largeInvoiceAmount ,
266+ t .t , charlie , invoiceResp3 .RHash , assetID , nil ,
267+ largeInvoiceAmount ,
267268 )
268269
269270 // We keysend the rest, so that all the balance is on Dave's side.
@@ -449,10 +450,11 @@ func testCustomChannels(ctx context.Context, net *NetworkHarness,
449450 // sender side show the individual HTLCs that arrived for it and that
450451 // they show the correct asset amounts when decoded.
451452 assertInvoiceHtlcAssets (
452- t .t , charlie , invoiceResp , assetID , charlieInvoiceAmount ,
453+ t .t , charlie , invoiceResp , assetID , nil , charlieInvoiceAmount ,
453454 )
454455 assertPaymentHtlcAssets (
455- t .t , dave , invoiceResp .RHash , assetID , charlieInvoiceAmount ,
456+ t .t , dave , invoiceResp .RHash , assetID , nil ,
457+ charlieInvoiceAmount ,
456458 )
457459
458460 charlieAssetBalance += charlieInvoiceAmount
@@ -890,7 +892,8 @@ func testCustomChannelsGroupedAsset(ctx context.Context, net *NetworkHarness,
890892 // ------------
891893 const keySendAmount = 100
892894 sendAssetKeySendPayment (
893- t .t , charlie , dave , keySendAmount , assetID , fn .None [int64 ](),
895+ t .t , charlie , dave , keySendAmount , nil , fn .None [int64 ](),
896+ withGroupKey (groupID ),
894897 )
895898 logBalance (t .t , nodes , assetID , "after keysend" )
896899
@@ -918,10 +921,11 @@ func testCustomChannelsGroupedAsset(ctx context.Context, net *NetworkHarness,
918921 // invoice.
919922 // ------------
920923 createAndPayNormalInvoice (
921- t .t , charlie , dave , dave , 20_000 , assetID , withSmallShards (),
924+ t .t , charlie , dave , dave , 20_000 , nil , withSmallShards (),
922925 withFailure (lnrpc .Payment_FAILED , failureIncorrectDetails ),
926+ withGroupKey (groupID ),
923927 )
924- logBalance (t .t , nodes , assetID , "after invoice" )
928+ logBalance (t .t , nodes , assetID , "after failed invoice" )
925929
926930 // We should also be able to do a multi-hop BTC only payment, paying an
927931 // invoice from Erin by Charlie.
@@ -935,22 +939,24 @@ func testCustomChannelsGroupedAsset(ctx context.Context, net *NetworkHarness,
935939 // ------------
936940 const daveInvoiceAssetAmount = 2_000
937941 invoiceResp := createAssetInvoice (
938- t .t , charlie , dave , daveInvoiceAssetAmount , assetID ,
942+ t .t , charlie , dave , daveInvoiceAssetAmount , nil ,
943+ withInvGroupKey (groupID ),
939944 )
940945 payInvoiceWithAssets (
941- t .t , charlie , dave , invoiceResp .PaymentRequest , assetID ,
946+ t .t , charlie , dave , invoiceResp .PaymentRequest , nil ,
942947 withSmallShards (),
948+ withGroupKey (groupID ),
943949 )
944950 logBalance (t .t , nodes , assetID , "after invoice" )
945951
946952 // Make sure the invoice on the receiver side and the payment on the
947953 // sender side show the individual HTLCs that arrived for it and that
948954 // they show the correct asset amounts when decoded.
949955 assertInvoiceHtlcAssets (
950- t .t , dave , invoiceResp , assetID , daveInvoiceAssetAmount ,
956+ t .t , dave , invoiceResp , nil , groupID , daveInvoiceAssetAmount ,
951957 )
952958 assertPaymentHtlcAssets (
953- t .t , charlie , invoiceResp .RHash , assetID ,
959+ t .t , charlie , invoiceResp .RHash , nil , groupID ,
954960 daveInvoiceAssetAmount ,
955961 )
956962
@@ -961,7 +967,8 @@ func testCustomChannelsGroupedAsset(ctx context.Context, net *NetworkHarness,
961967 // Test case 4: Pay a normal invoice from Erin by Charlie.
962968 // ------------
963969 paidAssetAmount := createAndPayNormalInvoice (
964- t .t , charlie , dave , erin , 20_000 , assetID , withSmallShards (),
970+ t .t , charlie , dave , erin , 20_000 , nil , withSmallShards (),
971+ withGroupKey (groupID ),
965972 )
966973 logBalance (t .t , nodes , assetID , "after invoice" )
967974
@@ -974,7 +981,8 @@ func testCustomChannelsGroupedAsset(ctx context.Context, net *NetworkHarness,
974981 // ------------
975982 const fabiaInvoiceAssetAmount1 = 1000
976983 invoiceResp = createAssetInvoice (
977- t .t , erin , fabia , fabiaInvoiceAssetAmount1 , assetID ,
984+ t .t , erin , fabia , fabiaInvoiceAssetAmount1 , nil ,
985+ withInvGroupKey (groupID ),
978986 )
979987 payInvoiceWithAssets (
980988 t .t , charlie , dave , invoiceResp .PaymentRequest , assetID ,
@@ -1014,8 +1022,8 @@ func testCustomChannelsGroupedAsset(ctx context.Context, net *NetworkHarness,
10141022 t .t , erin , fabia , fabiaInvoiceAssetAmount3 , assetID ,
10151023 )
10161024 payInvoiceWithAssets (
1017- t .t , charlie , dave , invoiceResp .PaymentRequest , assetID ,
1018- withSmallShards (),
1025+ t .t , charlie , dave , invoiceResp .PaymentRequest , nil ,
1026+ withSmallShards (), withGroupKey ( groupID ),
10191027 )
10201028 logBalance (t .t , nodes , assetID , "after invoice" )
10211029
@@ -1032,7 +1040,8 @@ func testCustomChannelsGroupedAsset(ctx context.Context, net *NetworkHarness,
10321040
10331041 const yaraInvoiceAssetAmount1 = 1000
10341042 invoiceResp = createAssetInvoice (
1035- t .t , dave , yara , yaraInvoiceAssetAmount1 , assetID ,
1043+ t .t , dave , yara , yaraInvoiceAssetAmount1 , nil ,
1044+ withInvGroupKey (groupID ),
10361045 )
10371046 payInvoiceWithAssets (
10381047 t .t , charlie , dave , invoiceResp .PaymentRequest , assetID ,
@@ -1944,10 +1953,10 @@ func testCustomChannelsLiquidityEdgeCases(ctx context.Context,
19441953 // sender side show the individual HTLCs that arrived for it and that
19451954 // they show the correct asset amounts when decoded.
19461955 assertInvoiceHtlcAssets (
1947- t .t , dave , invoiceResp , assetID , bigAssetAmount ,
1956+ t .t , dave , invoiceResp , assetID , nil , bigAssetAmount ,
19481957 )
19491958 assertPaymentHtlcAssets (
1950- t .t , charlie , invoiceResp .RHash , assetID , bigAssetAmount ,
1959+ t .t , charlie , invoiceResp .RHash , assetID , nil , bigAssetAmount ,
19511960 )
19521961
19531962 // Dave sends 200k assets and 5k sats to Yara.
@@ -2908,7 +2917,8 @@ func testCustomChannelsOraclePricing(ctx context.Context, net *NetworkHarness,
29082917 charliePaidMSat , rate ,
29092918 ).ScaleTo (0 ).ToUint64 ()
29102919 assertPaymentHtlcAssets (
2911- t .t , charlie , invoiceResp .RHash , assetID , charliePaidAmount ,
2920+ t .t , charlie , invoiceResp .RHash , assetID , nil ,
2921+ charliePaidAmount ,
29122922 )
29132923
29142924 // We now make sure the asset and satoshi channel balances are exactly
0 commit comments