-
Notifications
You must be signed in to change notification settings - Fork 42
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
Sanity check channel balance prior to swap #81
Comments
WhySo this issue is a little bit paranoid but we want to do everything we can to avoid canceled swaps, especially swap-out swaps as the SolutionWe want to check that |
It would be nice to fix this because it would prevent guaranteed-to-fail onchain transactions and spamming the swap database. |
Prior to starting a swap, and again prior to sending, check the channel's max htlc limit to verify that the requested swap would actually be possible. Print informative error messages otherwise.
Related: #73
The text was updated successfully, but these errors were encountered: