Skip to content

Commit 62f71a7

Browse files
committed
f suggest not fc'ing
1 parent f6d63ea commit 62f71a7

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

lightning/src/chain/mod.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -179,13 +179,13 @@ pub trait Confirm {
179179
///
180180
/// Note that there is no error variant - any failure to persist a [`ChannelMonitor`] should be
181181
/// retried indefinitely, the node shut down (as if we cannot update stored data we can't do much
182-
/// of anything useful), or the channel force-close using
183-
/// [`ChannelManager::force_close_broadcasting_latest_txn`].
182+
/// of anything useful).
184183
///
185-
/// Note that in the last case, force-closing with the latest [`ChannelMonitorUpdate`] applied may
186-
/// result in a transaction which can only be spent by the latest [`ChannelMonitor`]. Thus, if the
187-
/// latest [`ChannelMonitor`] is not durably persisted anywhere, naively calling
188-
/// [`ChannelManager::force_close_broadcasting_latest_txn`] *may result in loss of funds*!
184+
/// Note that channels should generally not be force-closed after a persistence failure.
185+
/// Force-closing with the latest [`ChannelMonitorUpdate`] applied may result in a transaction
186+
/// being broadcast which can only be spent by the latest [`ChannelMonitor`]! Thus, if the
187+
/// latest [`ChannelMonitor`] is not durably persisted anywhere and exists only in memory, naively
188+
/// calling [`ChannelManager::force_close_broadcasting_latest_txn`] *may result in loss of funds*!
189189
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
190190
pub enum ChannelMonitorUpdateStatus {
191191
/// The update has been durably persisted and all copies of the relevant [`ChannelMonitor`]

0 commit comments

Comments
 (0)