Skip to content

Commit 9078c0d

Browse files
committed
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.
1 parent e37b350 commit 9078c0d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lightning/src/ln/channelmanager.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7668,7 +7668,7 @@ where
76687668
if let Ok(persist) = handle_error!(self, self.internal_channel_update(counterparty_node_id, msg), *counterparty_node_id) {
76697669
persist
76707670
} else {
7671-
NotifyOption::SkipPersistNoEvents
7671+
NotifyOption::DoPersist
76727672
}
76737673
});
76747674
}

0 commit comments

Comments
 (0)