Move in-flight `ChannelMonitorUpdate`s to `ChannelManager`
authorMatt Corallo <git@bluematt.me>
Mon, 19 Jun 2023 06:26:39 +0000 (06:26 +0000)
committerMatt Corallo <git@bluematt.me>
Fri, 23 Jun 2023 19:25:40 +0000 (19:25 +0000)
commit4041f0899f86eaf6a0a4576a91918fa54026ac46
treeb5a0cd0ece91dc53d9d9097e0c45eaa0b40c8ebf
parent1c7b6925a2c3e078228091fd692bee72c75ddcd8
Move in-flight `ChannelMonitorUpdate`s to `ChannelManager`

Because `ChannelMonitorUpdate`s can be generated for a
channel which is already closed, and must still be tracked
through their completion, storing them in a `Channel`
doesn't make sense - we'd have to have a redundant place to
put them post-closure and handle both storage locations
equivalently.

Instead, here, we move to storing in-flight
`ChannelMonitorUpdate`s to the `ChannelManager`, leaving
blocked `ChannelMonitorUpdate`s in the `Channel` as they
were.
lightning/src/ln/channel.rs
lightning/src/ln/channelmanager.rs
lightning/src/util/ser.rs