]> git.bitcoin.ninja Git - rust-lightning/commit
Handle monitor completion actions for closed channels
authorMatt Corallo <git@bluematt.me>
Tue, 4 Jul 2023 15:13:32 +0000 (15:13 +0000)
committerMatt Corallo <git@bluematt.me>
Mon, 10 Jul 2023 21:32:44 +0000 (21:32 +0000)
commitd450e0fb2c73d4310bf63aaac6fbf5217cc9bf27
tree54715d2389ba501490fac5dc5df4ee9d5a483575
parent4c342bd6b6c8a989e6647de090c616d75b7d1f8c
Handle monitor completion actions for closed channels

If a channel has been closed, there may still be some
`ChannelMonitorUpdate`(s) which are pending completion. These
in-flight updates may also be blocking another channel from letting
an update fly, e.g. for forwarded payments where the payment
preimage will be removed from the downstream channel after the
upstream channel has closed.

Luckily all the infrastructure to handle this case is already in
place - we just need to process the
`monitor_update_blocked_actions` for closed channels.
lightning/src/ln/channelmanager.rs