joule-extension icon indicating copy to clipboard operation
joule-extension copied to clipboard

Joule hangs indefinitely on HodlInvoice payment

Open ianpatton opened this issue 5 years ago • 1 comments

Description of the Issue

When paying a Hodl Invoice, the Joule browser plugin may not get a response from the LND API immediately. Due to the nature of Hodl Invoices, the server may not respond for hours or days, depending upon when the recipient decides to settle the invoice.

See discussion on this LND issue: https://github.com/lightningnetwork/lnd/issues/3469

BlueWallet, for example, times out the request after ~60 seconds and just shows "Payment in transit"

Steps to Reproduce

Create a Hodl invoice on LND, and attempt to pay it from Joule. The receiving end will correctly show the payment transition to "ACCEPTED" state, but Joule has no way of knowing this and just spins until the invoice is settled.

Description of Your Setup

Browser & version: Brave Operating system: Linux Node software & version: LND 0.7.1-beta

Console Logs / Screenshots

[Please provide these if you can!]

ianpatton avatar Sep 09 '19 17:09 ianpatton

Ah yes, I think this could be remedied with the async payment RPC's that are being worked on, but none of that has made it to the REST API yet. Unfortunately it's a bit of a second class citizen.

wbobeirne avatar Sep 09 '19 18:09 wbobeirne