loop
loop copied to clipboard
After prepayment fails lnd keeps trying to pay the swap, delaying failure notification.
A successful loop out involves two off chain payments: the prepay and the swap.
If the prepay fails early, the swap is bound to fail, but loop never communicates to lnd that it should stop trying to make this payment.
Once one of the offchain payment fails, we should ask lnd to "stop trying" to fulfill the other payment. We can't rely on lnd's timeout, since loop sets this to 60 minutes (this makes sense, since the swap payments might take a while to find a route).
Edit:
I'm on version v0.23.0-beta
Additionally, if lnd eventually failed the payment with a timeout, we would continue to retry it.
LND doesn't have an API that allows stopping trying a payment, but at a high level yeah potentially things can be improved here
Can you include the version of loopd you are using in the issue?
I'm aware LND doesn't have that API, but I would be glad to open an issue in lnd's repo about it.
Great yeah, there may be stuff we can do to workaround it but I can confirm that we do have this in-flight issue because of the lack of the cancel API