-
Notifications
You must be signed in to change notification settings - Fork 137
Open
Labels
P3RFQWork relating to TAP channel Request For Quote (RFQ).Work relating to TAP channel Request For Quote (RFQ).bugSomething isn't workingSomething isn't workingerror handlinginvoices
Description
We have a test case where an asset invoice is created for an amount greater than the RFQ quote
This test case fails as designed, but there are problems with how it fails and how the test case is designed:
- The amounts in the comments don't seem to match up with the the amounts of the RFQ quote request and the invoice.
- It doesn't fail when invoice generation occurs with
AddInvoice
. Instead, the test case later fails whenSendPaymentV2
is attempted. We should get failure immediately when invoice generation is attempted so that the user doesn't waste time trying to get someone else to pay an invoice that they can already know will never go through. This follows the same methodology that is explained in [feature]: fail AddInvoice if not enough capacity to actually receive the payment lightningnetwork/lnd#9380 for not creating invoices that we know won't work if there is not enough channel capacity. - When
SendPaymentV2
fails, it fails with "context deadline exceeded", which is a totally uninformative error message for an application developer to try and figure out what is going on. withFailure(lnrpc.Payment_FAILED, failureNone)
is passed to the functionpayInvoiceWithSatoshi
, but I don't know that that information is actually used sincecfg.errSubStr="context deadline exceeded"
seems to be all that is tested.
We need to have the issues with AddInvoice
fixed and better error messages with SendPaymentV2
if someone does manage to make a bogus invoice.
Metadata
Metadata
Assignees
Labels
P3RFQWork relating to TAP channel Request For Quote (RFQ).Work relating to TAP channel Request For Quote (RFQ).bugSomething isn't workingSomething isn't workingerror handlinginvoices