Skip to content

Commit b270069

Browse files
committed
f better docs on chanman read/init
1 parent 24f9398 commit b270069

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

lightning/src/ln/channelmanager.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12217,10 +12217,11 @@ impl Readable for VecDeque<(Event, Option<EventCompletionAction>)> {
1221712217
/// 3) If you are not fetching full blocks, register all relevant [`ChannelMonitor`] outpoints the
1221812218
/// same way you would handle a [`chain::Filter`] call using
1221912219
/// [`ChannelMonitor::get_outputs_to_watch`] and [`ChannelMonitor::get_funding_txo`].
12220-
/// 4) Reconnect blocks on your [`ChannelMonitor`]s.
12221-
/// 5) Disconnect/connect blocks on the [`ChannelManager`].
12220+
/// 4) Disconnect/connect blocks on your [`ChannelMonitor`]s to get them in sync with the chain.
12221+
/// 5) Disconnect/connect blocks on the [`ChannelManager`] to get it in sync with the chain.
1222212222
/// 6) Optionally re-persist the [`ChannelMonitor`]s to ensure the latest state is on disk.
12223-
/// This is important if you have replayed a nontrivial number of blocks in step (4) but is
12223+
/// This is important if you have replayed a nontrivial number of blocks in step (4), allowing
12224+
/// you to avoid having to replay the same blocks if you shut down quickly after startup. It is
1222412225
/// otherwise not required.
1222512226
/// Note that if you're using a [`ChainMonitor`] for your [`chain::Watch`] implementation, you
1222612227
/// will likely accomplish this as a side-effect of calling [`chain::Watch::watch_channel`] in

0 commit comments

Comments
 (0)