Always persist the ChannelManager on a failed ChannelUpdate

If we receive a `ChannelUpdate` message which was invalid, it can
cause us to force-close the channel, which should result in a
`ChannelManager` persistence, though its not critical to do so.
This commit is contained in:
Matt Corallo 2023-08-24 19:57:45 +00:00
parent e37b350408
commit 9078c0dc5c

View file

@ -7668,7 +7668,7 @@ where
if let Ok(persist) = handle_error!(self, self.internal_channel_update(counterparty_node_id, msg), *counterparty_node_id) {
persist
} else {
NotifyOption::SkipPersistNoEvents
NotifyOption::DoPersist
}
});
}