Avoid persisting `ChannelManager` in response to peer connection
authorMatt Corallo <git@bluematt.me>
Sun, 10 Sep 2023 23:10:03 +0000 (23:10 +0000)
committerMatt Corallo <git@bluematt.me>
Tue, 12 Sep 2023 19:06:34 +0000 (19:06 +0000)
commite37b35040813a7b4dfc9123ba82ce29c32156367
tree984705adb0ac089e91f2866825c7c0ef55506bb5
parent71bafecafccbf35298f41149cd0153b72b8e786e
Avoid persisting `ChannelManager` in response to peer connection

When a peer connects and we send some `channel_reestablish`
messages or create a `per_peer_state` entry there's really no
reason to need to persist the `ChannelManager`. None of the
possible actions we take immediately result in a change to the
persisted contents of a `ChannelManager`, only the peer's later
`channel_reestablish` message does.
lightning/src/ln/channelmanager.rs