Track actions to execute after a `ChannelMonitor` is updated
authorMatt Corallo <git@bluematt.me>
Wed, 30 Nov 2022 18:49:44 +0000 (18:49 +0000)
committerMatt Corallo <git@bluematt.me>
Fri, 17 Feb 2023 19:09:28 +0000 (19:09 +0000)
commit56f979be3e88957b1adbfd108e1f75692bd364b5
tree7229318b2defc65a0bf93e2ca02ffcfb11e737ef
parent8aa518f23d48a6749e23c590700648ea01f6a4df
Track actions to execute after a `ChannelMonitor` is updated

When a `ChannelMonitor` update completes, we may need to take some
further action, such as exposing an `Event` to the user initiating
another `ChannelMonitor` update, etc. This commit adds the basic
structure to track such actions and serialize them as required.

Note that while this does introduce a new map which is written as
an even value which users cannot opt out of, the map is only filled
in when users use the asynchronous `ChannelMonitor` updates. As
these are still considered beta, breaking downgrades for such users
is considered acceptable here.
lightning/src/ln/channelmanager.rs
lightning/src/util/ser.rs