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

Failure messages #166

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open

Failure messages #166

wants to merge 7 commits into from

Conversation

JssDWt
Copy link
Collaborator

@JssDWt JssDWt commented Jan 5, 2024

Instead of failure codes, we use failure messages. This gives lspd more control over the returned failure to the sender. In the case of a temporary channel failure for example, we are able to return the correct channel policy in the failure message, so the sender may be able to retry. This also allows us to return any error code, and aligns the interfaces for cln and lnd.

** !! **
Requires an update to LND, to include this PR lightningnetwork/lnd#7067
It is included in lnd here https://github.com/breez/lnd/tree/unencrypted-failure-messages

@JssDWt JssDWt force-pushed the failure-messages branch 2 times, most recently from cb7e8f1 to 43b2c52 Compare January 5, 2024 12:04
Copy link
Member

@roeierez roeierez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Member

@yaslama yaslama left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, but I don't know if it's a good idea to use it in prod before lightningnetwork/lnd#7067 is merged

@JssDWt
Copy link
Collaborator Author

JssDWt commented Feb 8, 2024

Put on hold until lightningnetwork/lnd#7067 is merged.

@JssDWt JssDWt mentioned this pull request Feb 8, 2024
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.

None yet

3 participants