]> git.bitcoin.ninja Git - rust-lightning/commit
Skip persistence in the usual case handling channel_reestablish
authorMatt Corallo <git@bluematt.me>
Thu, 24 Aug 2023 20:02:08 +0000 (20:02 +0000)
committerMatt Corallo <git@bluematt.me>
Tue, 12 Sep 2023 19:06:34 +0000 (19:06 +0000)
commitce94a5ec221d63f47d65f674b46422b1612147bf
tree047ef358ce4fe075aa19495a2be6110fed446c72
parent9078c0dc5c30f7fcd1503cf30237cd3fe87154c0
Skip persistence in the usual case handling channel_reestablish

When we handle an inbound `channel_reestablish` from our peers it
generally doesn't change any state and thus doesn't need a
`ChannelManager` persistence. Here we avoid said persistence where
possible.
lightning/src/ln/channelmanager.rs