mirror of
https://github.com/lightningdevkit/rust-lightning.git
synced 2025-03-15 15:39:09 +01:00
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:
parent
e37b350408
commit
9078c0dc5c
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue