Stop persisting background shutdown monitor updates
authorMatt Corallo <git@bluematt.me>
Tue, 9 May 2023 21:02:01 +0000 (21:02 +0000)
committerMatt Corallo <git@bluematt.me>
Tue, 9 May 2023 21:03:07 +0000 (21:03 +0000)
commit135f4149ed41edcef47c4eaa0dc48947555c47e5
tree77b513bcdcf5f32359323b77586d853d522dcb8c
parentf569e9f8024ac4766fbd0c58959a215f77d8bac5
Stop persisting background shutdown monitor updates

In d4810087c1 we added logic to apply `ChannelMonitorUpdate`s which
were a part of a channel closure async via a background queue to
address some startup issues. When we did that we persisted those
updates to ensure we replayed them when starting next time.

However, there was no reason to - if we persisted and then
restarted even without those monitor updates we'd find a monitor
without a channel, which we'd tell to broadcast the latest
commitment transaction to force-close.

Since adding that logic, we've used the same background queue for
several purposes.
lightning/src/ln/channelmanager.rs