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

Add HTLCHandlingFailed event #1403

Merged

Commits on Jul 25, 2022

  1. Add HTLCHandlingFailed event

    Adds a HTLCHandlingFailed that expresses failure by our node to process
    a specific HTLC. A HTLCDestination enum is defined to express the
    possible cases that causes the handling to fail.
    jurvis committed Jul 25, 2022
    Configuration menu
    Copy the full SHA
    17e6c37 View commit details
    Browse the repository at this point in the history
  2. Add utils to handle HTLC handling failure reason

    We add `HTLCHandlingFailedConditions` to express the failure parameters,
    that will be enforced by a new macro, `expect_pending_htlcs_forwardable_conditions`.
    jurvis committed Jul 25, 2022
    Configuration menu
    Copy the full SHA
    5bccd2e View commit details
    Browse the repository at this point in the history
  3. Send failure event if we fail to handle a HTLC

    In `ChannelManager::fail_htlc_backwards_internal`, we push a `HTLCHandlingFailed`
    containing some information about the HTLC
    jurvis committed Jul 25, 2022
    Configuration menu
    Copy the full SHA
    ac842ed View commit details
    Browse the repository at this point in the history