Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Synchronize all payment attempt results #30

Open
JssDWt opened this issue Jan 13, 2025 · 0 comments
Open

Synchronize all payment attempt results #30

JssDWt opened this issue Jan 13, 2025 · 0 comments

Comments

@JssDWt
Copy link
Collaborator

JssDWt commented Jan 13, 2025

Swaps are locked for payment when doing a payout. If the server restarts, or for whatever reason the lock is not removed after the payment, the swap can be locked for payment forever. swapd already synchronizes preimages in the background, but not yet failed payments. swapd should synchronize payments in the background to ensure locks are removed when the payment is no longer in progress.

Suggestion to check whether a payment is in-progress:

  • payment is in a 'pending' state
  • AND there are no htlcs in-flight
  • AND the last started payment attempt was a reasonable time ago, perhaps 30 minutes

This is a leftover from #28

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant