Skip to content

Commit 97a6a6b

Browse files
authored
Merge pull request #1842 from jkczyz/2022-11-channel-monitor-docs
Fix outdated `ChannelMonitor` docs
2 parents d036400 + d4c3e16 commit 97a6a6b

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

lightning/src/chain/channelmonitor.rs

+5-3
Original file line numberDiff line numberDiff line change
@@ -1305,9 +1305,11 @@ impl<Signer: Sign> ChannelMonitor<Signer> {
13051305
/// Gets the list of pending events which were generated by previous actions, clearing the list
13061306
/// in the process.
13071307
///
1308-
/// This is called by ChainMonitor::get_and_clear_pending_events() and is equivalent to
1309-
/// EventsProvider::get_and_clear_pending_events() except that it requires &mut self as we do
1310-
/// no internal locking in ChannelMonitors.
1308+
/// This is called by the [`EventsProvider::process_pending_events`] implementation for
1309+
/// [`ChainMonitor`].
1310+
///
1311+
/// [`EventsProvider::process_pending_events`]: crate::util::events::EventsProvider::process_pending_events
1312+
/// [`ChainMonitor`]: crate::chain::chainmonitor::ChainMonitor
13111313
pub fn get_and_clear_pending_events(&self) -> Vec<Event> {
13121314
self.inner.lock().unwrap().get_and_clear_pending_events()
13131315
}

0 commit comments

Comments
 (0)