fix(lnd): allow self-payments for LNURL-withdraw
Some checks failed
Docker Compose Actions Workflow / test (push) Has been cancelled
Some checks failed
Docker Compose Actions Workflow / test (push) Has been cancelled
When the user's wallet (e.g. Zeus) is connected to the same LND node that LP uses, LNURL-withdraw fails because LND rejects the payment with "no self-payments allowed". This is safe because LP always decrements the user's balance before paying and refunds on failure. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
5aaa3bcc23
commit
68c71599f8
1 changed files with 1 additions and 1 deletions
|
|
@ -9,7 +9,7 @@ export const PayInvoiceReq = (invoice: string, amount: number, feeLimit: number)
|
||||||
maxParts: 3,
|
maxParts: 3,
|
||||||
timeoutSeconds: 50,
|
timeoutSeconds: 50,
|
||||||
|
|
||||||
allowSelfPayment: false,
|
allowSelfPayment: true,
|
||||||
amp: false,
|
amp: false,
|
||||||
amtMsat: 0n,
|
amtMsat: 0n,
|
||||||
cltvLimit: 0,
|
cltvLimit: 0,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue