Provide a redundant `Event::PaymentClaimed` on restart if needed
authorMatt Corallo <git@bluematt.me>
Wed, 4 May 2022 18:12:09 +0000 (18:12 +0000)
committerMatt Corallo <git@bluematt.me>
Sat, 28 May 2022 00:02:49 +0000 (00:02 +0000)
commit0e2542176b44519733f912de2973ed46915d2251
tree6e268a009ce683f6fb2056ddeb16ff4ada04b7b5
parent0a2a40c4fd05f39b9485cc0f000f7066636783cb
Provide a redundant `Event::PaymentClaimed` on restart if needed

If we crashed during a payment claim and then detected a partial
claim on restart, we should ensure the user is aware that the
payment has been claimed. We do so here by using the new
partial-claim detection logic to create a `PaymentClaimed` event.
lightning/src/ln/channelmanager.rs
lightning/src/ln/functional_tests.rs