Reapply pending `ChannelMonitorUpdate`s on startup
authorMatt Corallo <git@bluematt.me>
Tue, 4 Apr 2023 21:45:37 +0000 (21:45 +0000)
committerMatt Corallo <git@bluematt.me>
Tue, 30 May 2023 23:05:03 +0000 (23:05 +0000)
commit785bdb84cb3fb0305cad2edc30e2df03b6988c9b
tree5a3ac189672d46407bebd2967377d73a996eb5dd
parente5070c488090476ed61910316dd13fb45a58f442
Reapply pending `ChannelMonitorUpdate`s on startup

If a `ChannelMonitorUpdate` was created and given to the user but
left uncompleted when the `ChannelManager` is persisted prior to a
restart, the user likely lost the `ChannelMonitorUpdate`(s). Thus,
we need to replay them for the user, which we do here using the
new `BackgroundEvent::MonitorUpdateRegeneratedOnStartup` variant.
lightning/src/ln/channel.rs
lightning/src/ln/channelmanager.rs