Skip to content

Commit d79e08f

Browse files
committed
f clarify the cases somewhat since its not clear
1 parent 76e1d55 commit d79e08f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lightning/src/chain/chainmonitor.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -832,10 +832,10 @@ where
832832
/// that hasn't changed, slowing down startup.
833833
///
834834
/// Note that this method *can* be used if additional blocks were replayed against the
835-
/// [`ChannelMonitor`], and in general can only *not* be used if a [`ChannelMonitorUpdate`] was
836-
/// replayed against the [`ChannelMonitor`] which needs to be persisted (i.e. the state has
837-
/// changed due to a [`ChannelMonitorUpdate`] such that it may be different after another
838-
/// restart).
835+
/// [`ChannelMonitor`] or if a [`ChannelMonitorUpdate`] loaded from disk was replayed such that
836+
/// it will replayed on startup, and in general can only *not* be used if you directly accessed
837+
/// the [`ChannelMonitor`] and changed its state in some way that will not be replayed again on
838+
/// a restart.
839839
///
840840
/// For [`ChannelMonitor`]s which were last serialized by an LDK version prior to 0.1 this will
841841
/// fall back to calling [`chain::Watch::watch_channel`] and persisting the [`ChannelMonitor`].

0 commit comments

Comments
 (0)