Add support for handling "actions" after a monitor update completes
authorMatt Corallo <git@bluematt.me>
Wed, 30 Nov 2022 18:37:12 +0000 (18:37 +0000)
committerMatt Corallo <git@bluematt.me>
Thu, 8 Dec 2022 21:24:26 +0000 (21:24 +0000)
commitbffbd3784d5832df45f079f0058cb1e4fa2cd91d
tree9d316056fa670a6620c244fc80d451d3380b7f75
parent27e59ef01a2e68499d3cbfee135a49f0579f64dc
Add support for handling "actions" after a monitor update completes

This adds a new enum, `MonitorUpdateCompletionAction` and a method
to execute the "actions". They are intended to be done once a
(potentially-async) `ChannelMonitorUpdate` persistence completes,
however this behavior will be implemented in a future PR. For now,
this adds the relevant infrastructure which will allow us to
prepare `claim_funds` for better monitor async handling.
lightning/src/ln/channelmanager.rs