Skip to content

Rename PaymentFailed event #1081

Closed

Description

@TheBlueMatt

We really need to rename the PaymentFailed event to indicate that sometimes its just a payment part or htlc that failed, not the full payment. see #1053 (comment)

Activity

  1. added this to the 0.0.102 milestone on Sep 17, 2021
  2. valentinewallace commented on Sep 17, 2021

    @valentinewallace
    Contributor

    @jkczyz think we should rename to HTLCFailed? I'm not sure if that makes it weird to have an all_paths_failed field. I slightly prefer PaymentPathFailed for that reason.

  3. jkczyz commented on Sep 17, 2021

    @jkczyz
    Contributor

    If we go with the HTLC terminology, we could rename all_paths_failed to payment_failed perhaps. Note that for scoring we'll need an analogous event for success, possibly HTLCClaimed or PaymentPathSucceeded.

    That said, HTLCs are an implementation detail that probably don't need to be exposed, especially given future payments may not use HTLCs. So perhaps the payment path terminology is more appropriate.

  4. valentinewallace commented on Sep 17, 2021

    @valentinewallace
    Contributor

    HTLC does seem a little low-level for an event name, though other lightning impls have "htlc" in their public API, I'm not a huge fan but don't feel too strongly.

    Happy to assign myself this issue if there's consensus on PaymentPathFailed or similar. I like PaymentPathSuccessfor the analogous success event

  5. jkczyz commented on Sep 20, 2021

    @jkczyz
    Contributor

    Sure, would you mind adding both events each including the path? Based on discussions in #1077, I'll keep the failing channel separate from the path.

  6. valentinewallace commented on Sep 20, 2021

    @valentinewallace
    Contributor

    Oops

  7. valentinewallace commented on Sep 20, 2021

    @valentinewallace
    Contributor

    @jkczyz For context, is scoring for successful paths going to be in V1? I thought we were starting with just avoiding previously failed routes

  8. jkczyz commented on Sep 20, 2021

    @jkczyz
    Contributor

    Yeah, I suppose it could wait until V2.

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

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions