Do not always persist ChannelManager on channel_update messages
authorMatt Corallo <git@bluematt.me>
Mon, 28 Jun 2021 00:54:24 +0000 (00:54 +0000)
committerMatt Corallo <git@bluematt.me>
Wed, 30 Jun 2021 16:13:48 +0000 (16:13 +0000)
commiteca6da354b6ad20fdc39898af7088eb5d778f47e
tree210cf86b9da73f3e87ae9dd5bf99e637f9a66b82
parentf4729075cbfef9f99e8316335dd1e8d15671674d
Do not always persist ChannelManager on channel_update messages

If we receive a `channel_update` message for a channel unrelated to
our own, we shouldn't trigger a persistence of our
`ChannelManager`. This avoids significant persistence traffic during
initial node startup.
lightning/src/ln/channel.rs
lightning/src/ln/channelmanager.rs