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

Rename PaymentFailed event #1081

Closed
TheBlueMatt opened this issue Sep 17, 2021 · 7 comments · Fixed by #1084
Closed

Rename PaymentFailed event #1081

TheBlueMatt opened this issue Sep 17, 2021 · 7 comments · Fixed by #1084
Assignees
Milestone

Comments

@TheBlueMatt
Copy link
Collaborator

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)

@TheBlueMatt TheBlueMatt added this to the 0.0.102 milestone Sep 17, 2021
@valentinewallace
Copy link
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.

@jkczyz
Copy link
Contributor

jkczyz commented Sep 17, 2021

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.

@valentinewallace
Copy link
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

@jkczyz
Copy link
Contributor

jkczyz commented Sep 20, 2021

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.

@valentinewallace
Copy link
Contributor

Oops

@valentinewallace
Copy link
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

@valentinewallace valentinewallace self-assigned this Sep 20, 2021
@jkczyz
Copy link
Contributor

jkczyz commented Sep 20, 2021

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
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants