Skip to content

Give HTLCHandlingFailed a reason of some kind #3541

Closed

Description

@TheBlueMatt

With #2933 we're gonna expand substantially the cases where we generate an HTLCHandlingFailed. It would be nice to give the event a reason code for users to look at now.

Activity

  1. added
    Take a Friday Leave a Friday
    on Jan 15, 2025
  2. joostjager commented on Mar 17, 2025

    @joostjager
    Contributor

    If I understand it correctly, HTLCHandlingFailed was already generated (without reason code), but just not in all failure cases. What is the background of adding the reason code? Is it nice to have as you say, or does it also unlock use cases that weren't possible previously because HTLCHandlingFailed wasn't generated always?

  3. carlaKC commented on Mar 17, 2025

    @carlaKC
    Contributor

    Discussed on LDK dev meeting today, motivation is to add more programatic observability to LDK - useful for tracking HTLC stats more granularly, for example. Generally just nice to have.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Take a Friday Leave a Friday

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions