| 
48 | 48 | 	shortTimeout = time.Second * 5  | 
49 | 49 | 
 
  | 
50 | 50 | 	defaultPaymentStatus = fn.None[lnrpc.Payment_PaymentStatus]()  | 
 | 51 | + | 
 | 52 | +	// nolint: lll  | 
 | 53 | +	errNoBalance = lnrpc.PaymentFailureReason_FAILURE_REASON_INSUFFICIENT_BALANCE  | 
 | 54 | +	errNoRoute   = lnrpc.PaymentFailureReason_FAILURE_REASON_NO_ROUTE  | 
51 | 55 | )  | 
52 | 56 | 
 
  | 
53 | 57 | var (  | 
@@ -528,6 +532,7 @@ func testCustomChannels(_ context.Context, net *NetworkHarness,  | 
528 | 532 | 	)  | 
529 | 533 | 	payInvoiceWithSatoshi(  | 
530 | 534 | 		t.t, charlie, invoiceResp, lnrpc.Payment_FAILED,  | 
 | 535 | +		fn.None[lnrpc.PaymentFailureReason](),  | 
531 | 536 | 	)  | 
532 | 537 | 	logBalance(t.t, nodes, assetID, "after asset invoice paid with sats")  | 
533 | 538 | 
 
  | 
@@ -574,7 +579,10 @@ func testCustomChannels(_ context.Context, net *NetworkHarness,  | 
574 | 579 | 	invoiceResp = createAssetInvoice(  | 
575 | 580 | 		t.t, erin, fabia, fabiaInvoiceAssetAmount2, assetID,  | 
576 | 581 | 	)  | 
577 |  | -	payInvoiceWithSatoshi(t.t, dave, invoiceResp, lnrpc.Payment_SUCCEEDED)  | 
 | 582 | +	payInvoiceWithSatoshi(  | 
 | 583 | +		t.t, dave, invoiceResp, lnrpc.Payment_SUCCEEDED,  | 
 | 584 | +		fn.None[lnrpc.PaymentFailureReason](),  | 
 | 585 | +	)  | 
578 | 586 | 	logBalance(t.t, nodes, assetID, "after invoice")  | 
579 | 587 | 
 
  | 
580 | 588 | 	erinAssetBalance -= fabiaInvoiceAssetAmount2  | 
@@ -1006,7 +1014,10 @@ func testCustomChannelsGroupedAsset(_ context.Context, net *NetworkHarness,  | 
1006 | 1014 | 	invoiceResp = createAssetInvoice(  | 
1007 | 1015 | 		t.t, erin, fabia, fabiaInvoiceAssetAmount2, assetID,  | 
1008 | 1016 | 	)  | 
1009 |  | -	payInvoiceWithSatoshi(t.t, dave, invoiceResp, lnrpc.Payment_SUCCEEDED)  | 
 | 1017 | +	payInvoiceWithSatoshi(  | 
 | 1018 | +		t.t, dave, invoiceResp, lnrpc.Payment_SUCCEEDED,  | 
 | 1019 | +		fn.None[lnrpc.PaymentFailureReason](),  | 
 | 1020 | +	)  | 
1010 | 1021 | 	logBalance(t.t, nodes, assetID, "after invoice")  | 
1011 | 1022 | 
 
  | 
1012 | 1023 | 	erinAssetBalance -= fabiaInvoiceAssetAmount2  | 
@@ -2015,7 +2026,10 @@ func testCustomChannelsLiquidityEdgeCases(_ context.Context,  | 
2015 | 2026 | 	// channels, where the total asset value is less than the default anchor  | 
2016 | 2027 | 	// amount of 354 sats.  | 
2017 | 2028 | 	invoiceResp = createAssetInvoice(t.t, dave, charlie, 1, assetID)  | 
2018 |  | -	payInvoiceWithSatoshi(t.t, yara, invoiceResp, lnrpc.Payment_FAILED)  | 
 | 2029 | +	payInvoiceWithSatoshi(  | 
 | 2030 | +		t.t, yara, invoiceResp, lnrpc.Payment_FAILED,  | 
 | 2031 | +		fn.Some(lnrpc.PaymentFailureReason_FAILURE_REASON_NO_ROUTE),  | 
 | 2032 | +	)  | 
2019 | 2033 | 
 
  | 
2020 | 2034 | 	logBalance(t.t, nodes, assetID, "after small payment (asset "+  | 
2021 | 2035 | 		"invoice, <354sats)")  | 
@@ -2686,7 +2700,7 @@ func testCustomChannelsOraclePricing(_ context.Context,  | 
2686 | 2700 | 	)  | 
2687 | 2701 | }  | 
2688 | 2702 | 
 
  | 
2689 |  | -// testCustomChannelsFee tests the whether the custom channel funding process  | 
 | 2703 | +// testCustomChannelsFee tests whether the custom channel funding process  | 
2690 | 2704 | // fails if the proposed fee rate is lower than the minimum relay fee.  | 
2691 | 2705 | func testCustomChannelsFee(_ context.Context,  | 
2692 | 2706 | 	net *NetworkHarness, t *harnessTest) {  | 
 | 
0 commit comments