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

error code for failed lightning payments #174

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

elnosh
Copy link
Contributor

@elnosh elnosh commented Oct 10, 2024

add error code for failed lightning payments in melts. If wallets see this error they can be sure the proofs are not stuck in a pending state.

@thesimplekid
Copy link
Collaborator

I noticed nutshell also has a general lightning error 20000 not sure what its used for? Should that be added as well, or is the only error we want to return a payment failed?

@elnosh
Copy link
Contributor Author

elnosh commented Oct 11, 2024

I've seen it but not sure either how it's used since there can be different errors with the lightning backend. Maybe @callebtc can add to that.

I only thought of payment failure error as a way for wallets to know for sure that the payment failed so they can use those proofs in other ops and are not stuck. But feel free to add other errors that you think would apply

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

Successfully merging this pull request may close these issues.

2 participants