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

Handle new outgoing payment failures #563

Merged
merged 6 commits into from
May 28, 2024
Merged

Conversation

dpad85
Copy link
Member

@dpad85 dpad85 commented May 13, 2024

This PR supports the new outgoing payment failures types added in ACINQ/lightning-kmp#634.

There is a small impact on the payments database, as the status of failed parts are stored using a code: Int json (with an optional String message).

@robbiehanson we should remove the details for failed parts on iOS. Instead, show a single error message using the OutgoingPaymentFailure.explain() method that will pick the most pertinent error for a given payment (will return either a FinalFailure error, or a Part.Status.Failure)

@dpad85 dpad85 force-pushed the channel-error-sending-failed branch 2 times, most recently from 20d2221 to 0c1529b Compare May 22, 2024 16:12
dpad85 added 3 commits May 22, 2024 18:47
Outgoing LN parts have a new failure type, which will
help provide more meaningful error messages. The
payments database interface has also changed to
accomodate these new types.

See ACINQ/lightning-kmp#634
@dpad85 dpad85 force-pushed the channel-error-sending-failed branch from 0c1529b to a149ad6 Compare May 22, 2024 16:55
@dpad85 dpad85 marked this pull request as ready for review May 22, 2024 16:56
@dpad85 dpad85 merged commit bd7f5d1 into master May 28, 2024
@dpad85 dpad85 deleted the channel-error-sending-failed branch May 28, 2024 08:29
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