Use new monitor persistence flow in funding_signed handling
authorMatt Corallo <git@bluematt.me>
Mon, 6 Feb 2023 23:03:38 +0000 (23:03 +0000)
committerMatt Corallo <git@bluematt.me>
Wed, 22 Feb 2023 17:34:46 +0000 (17:34 +0000)
commitc35253d6a88e504913ddb24c0ccdd1d3cb3206ab
tree82c29d70803fc7b5546e9c77341fa363c51662cf
parent4e002dcf5c97f506cf8e79e9fab02d71808cae5f
Use new monitor persistence flow in funding_signed handling

In the previous commit, we moved all our `ChannelMonitorUpdate`
pipelines to use a new async path via the
`handle_new_monitor_update` macro. This avoids having two message
sending pathways and simply sends messages in the "monitor update
completed" flow, which is shared between sync and async monitor
updates.

Here we reuse the new macro for handling `funding_signed` messages
when doing an initial `ChannelMonitor` persistence. This provides
a similar benefit, simplifying the code a trivial amount, but
importantly allows us to fully remove the original
`handle_monitor_update_res` macro.
lightning/src/ln/channel.rs
lightning/src/ln/channelmanager.rs