-
Notifications
You must be signed in to change notification settings - Fork 367
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
Note that abandon_payment does not persist the state update in docs #1907
Note that abandon_payment does not persist the state update in docs #1907
Conversation
Codecov ReportBase: 90.60% // Head: 91.00% // Increases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## main #1907 +/- ##
==========================================
+ Coverage 90.60% 91.00% +0.39%
==========================================
Files 91 94 +3
Lines 48656 51856 +3200
Branches 48656 51856 +3200
==========================================
+ Hits 44087 47191 +3104
- Misses 4569 4665 +96
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. |
LGTM, feel free to squash. |
Looks good for squash from my side. |
If a user calls `abandon_payment`, then restarts without freshly persisting the `ChannelManager`, the payment will still be pending on restart. This was unclear from the docs (and the docs seemed to imply otherwise). Because this doesn't materially impact the usability of `abandon_payment` (users shouldn't be called `retry_payment` on an abandoned one anyway), we simply document it. Fixes lightningdevkit#1804.
9792ca3
to
1969b48
Compare
Squashed without further changes, diff from the other day is: $ git diff-tree -U1 cf63c49 1969b48b7
diff --git a/lightning/src/ln/channelmanager.rs b/lightning/src/ln/channelmanager.rs
index 0aa89b5dc..29304cadb 100644
--- a/lightning/src/ln/channelmanager.rs
+++ b/lightning/src/ln/channelmanager.rs
@@ -2764,3 +2764,3 @@ impl<M: Deref, T: Deref, K: Deref, F: Deref, L: Deref> ChannelManager<M, T, K, F
/// After this method returns, no future calls to [`retry_payment`] for the given `payment_id`
- /// are allowed. If no such event has been generated, an [`Event::PaymentFailed`] event will be
+ /// are allowed. If no [`Event::PaymentFailed`] event had been generated before, one will be
/// generated as soon as there are no remaining pending HTLCs for this payment. |
If a user calls
abandon_payment
, then restarts without freshly persisting theChannelManager
, the payment will still be pending on restart. This was unclear from the docs (and the docs seemed to imply otherwise). Because this doesn't materially impact the usability ofabandon_payment
(users shouldn't be calledretry_payment
on an abandoned one anyway), we simply document it.Fixes #1804.