You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Rebuild pending payments list before replaying pending claims/fails
On `ChannelManager` reload we rebuild the pending outbound payments
list by looking for any missing payments in `ChannelMonitor`s.
However, in the same loop over `ChannelMonitor`s, we also re-claim
any pending payments which we see we have a payment preimage for.
If we send an MPP payment across different chanels, the result may
be that we'll iterate the loop, and in each iteration add a
pending payment with only one known path, then claim/fail it and
remove the pending apyment (at least for the claim case). This may
result in spurious extra events, or even both a `PaymentFailed` and
`PaymentSent` event on startup for the same payment.
Backport of 8106dbf
Resolved substantial conflcits in:
* lightning/src/ln/channelmanager.rs by simply rewriting the
patch.
Note that the `is_channel_closed` variable used in the upstream
version of this commit replaced simply checking if the
`outpoint_to_peer` map had an entry for the channel's funding
outpoint.
Note that the next upstream commit in this series
(3239d67) is unnecessary on this
branch as we use `outpoint_to_peer` rather than `per_peer_state` to
detect channel closure here.
0 commit comments