Skip to content

Expose a PaymentForwardingFailed Event #1392

Closed

Description

@TheBlueMatt

When we try to forward a payment but it fails, users may want to know about this, as it may imply something about rebalancing channels or at least may be something users want to collect stats about. As discussed in #1391 I don't think we want to expose payment hash here, but source + sink channels+nodes and whether we forwarded at all or failed without being able to forward would be useful info for users.

Activity

  1. added this to the 0.1.1 milestone on Mar 27, 2022
  2. jurvis commented on Mar 30, 2022

    @jurvis
    Contributor

    I can take a stab at this.

    Just a couple of questions:

    1. Is the sink node and channel referring to the node we are forwarding to that failed and the outbound channel respectively?
    2. Same question as above, but for source node/channel
    3. Will adding an else case here suffice in capturing where forwarding logic can fail? (still new to code base, just making sure I'm understand what is happening correctly)
  3. TheBlueMatt commented on Apr 1, 2022

    @TheBlueMatt
    CollaboratorAuthor

    Sorry for the delay here.

    Sink + source?

    Yes, correct, I was using it to refer to the forwardee and HTLC source.

    Will adding an else case here suffice in capturing where forwarding logic can fail? (still new to code base, just making sure I'm understand what is happening correctly)

    Ah, no, sorry, I believe that branch is for if the claim is duplicative of a previous claim (which can happen sometimes). For the forwarding-failed case you probably want to look at fail_htlc_backwards_internal.

  4. valentinewallace commented on Jan 18, 2023

    @valentinewallace
    Contributor

    I think this was closed by #1403

  5. TheBlueMatt commented on Jan 18, 2023

    @TheBlueMatt
    CollaboratorAuthor

    I believe that only applies in cases where we forwarded the HTLC and then have it fail, if we receive an HTLC and decide we can't forward it without forwarding at all, we don't generate the event. Will open a new issue for that.

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

    good first issue

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions