-
Notifications
You must be signed in to change notification settings - Fork 427
Rename PaymentReceived to PaymentClaimable
#1891
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 PaymentReceived to PaymentClaimable
#1891
Conversation
|
I wonder if we shouldn't rename |
|
I agree with Matt. Leaving PaymentClaimed should be less confusing. |
|
Yup, I had the same thought (see lightningdevkit/ldk-node#34 (comment)), but couldn't keep myself from including the second commit. Would have been nice to clean it up once and for all... Alright, will drop the second commit. |
64524d4 to
1d807c8
Compare
PaymentReceived to PaymentClaimable and PaymentClaimed to PaymentReceivedPaymentReceived to PaymentClaimable
Codecov ReportBase: 90.70% // Head: 91.01% // Increases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## main #1891 +/- ##
==========================================
+ Coverage 90.70% 91.01% +0.30%
==========================================
Files 91 91
Lines 48392 51224 +2832
Branches 48392 51224 +2832
==========================================
+ Hits 43894 46621 +2727
- Misses 4498 4603 +105
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
TheBlueMatt
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, basically.
1d807c8 to
c17e9fb
Compare
As discussed in lightningdevkit/ldk-node#34, the current naming of
PaymentReceived/PaymentClaimedevents is rather confusing sincePaymentReceivedby itself sounds like the final event, however, the user still needs to claim the payment before it ... well ... is actually received.In order to make the naming more consistent and intuitive, in this PR we therefore simply rename
PaymentReceivedtoPaymentClaimableandPaymentClaimedtoPaymentReceived.