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

[Testnet] Refund for failed Send LN swap doesn't complete #515

Open
ok300 opened this issue Oct 2, 2024 · 1 comment
Open

[Testnet] Refund for failed Send LN swap doesn't complete #515

ok300 opened this issue Oct 2, 2024 · 1 comment

Comments

@ok300
Copy link
Contributor

ok300 commented Oct 2, 2024

If a Send LN swap fails (for example, because we lockup less than the expected amount), the corresponding payment gets stuck in RefundPending.

The actual refund fails because no utxos are found for the swap lockup script. However, the utxo exists and is confirmed as seen by a blockchain explorer.

This is only an issue on testnet, where the lockup script history is queried using the electrum client.

On mainnet, where we use the Esplora API to fetch the lockup script history, this works correctly. The funds are refunded and the payment moves to Failed state, as expected.

@roeierez
Copy link
Member

roeierez commented Oct 5, 2024

@ok300 I don't understand why no utxo are found even though there is a confirmed one. Can you please elaborate?

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

2 participants