Return owned `ChannelMonitorUpdate`s from `Channel`
authorMatt Corallo <git@bluematt.me>
Sun, 18 Jun 2023 21:18:03 +0000 (21:18 +0000)
committerMatt Corallo <git@bluematt.me>
Wed, 21 Jun 2023 22:37:49 +0000 (22:37 +0000)
commit1433e9ee7bdbedd76f04d2ec79f5afc6a70674da
treeca724bb5e3d80d7ad2041050ad5744504e085011
parent15b1c9b83715ed98fa8c538195d13d44967031fb
Return owned `ChannelMonitorUpdate`s from `Channel`

In the coming commits we'll move to storing in-flight
`ChannelMonitorUpdate`s in the `ChannelManager` rather in the
`Channel` (which will then only retain `ChannelMonitorUpdate`s
which have not yet been released/are blocked.

This will simplify handling of pending `ChannelMonitorUpdate` after
a channel has closed by not having to move them into the
`ChannelManager`.
lightning/src/ln/channel.rs
lightning/src/ln/channelmanager.rs