Add a new monitor update result handling macro
authorMatt Corallo <git@bluematt.me>
Sat, 3 Dec 2022 04:25:37 +0000 (04:25 +0000)
committerMatt Corallo <git@bluematt.me>
Fri, 17 Feb 2023 19:09:28 +0000 (19:09 +0000)
commitba07622d0573e30d1343ef9c50aa5bc8ed8ef61e
tree67d6eb00dcb81fe3865d4e20d0bba043bff1d76b
parent34218cc4ee68b825ba8f4f12a93b7b0ed0f9898e
Add a new monitor update result handling macro

Over the next few commits, this macro will replace the
`handle_monitor_update_res` macro. It takes a different approach -
instead of receiving the message(s) that need to be re-sent after
the monitor update completes and pushing them back into the
channel, we'll not get the messages from the channel at all until
we're ready for them.

This will unify our message sending into only actually fetching +
sending messages in the common monitor-update-completed code,
rather than both there *and* in the functions that call `Channel`
when new messages are originated.
lightning/src/ln/channelmanager.rs