Skip to content

Commit 0d62234

Browse files
committed
f missing internal docs
1 parent da483b4 commit 0d62234

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

lightning/src/chain/chainmonitor.rs

+7
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,15 @@ use core::ops::Deref;
4444
use core::sync::atomic::{AtomicBool, Ordering};
4545

4646
#[derive(Clone, Copy, Hash, PartialEq, Eq)]
47+
/// A specific update stored in a `MonitorUpdateId`, separated out to make the contents entirely
48+
/// opaque.
4749
pub(crate) enum MonitorUpdate {
50+
/// An update which was generated by the [`ChannelManager`] (via our `chain::Watch`
51+
/// implementation). This corresponds to an actual [`ChannelMonitorUpdate::update_id`] field
52+
/// and [`ChannelMonitor::get_latest_update_id`].
4853
MonitorUpdateId(u64),
54+
/// An update which was generated during blockchain processing. The ID here is specific to the
55+
/// generating [`ChainMonitor`] and does *not* correspond to any on-disk IDs.
4956
SyncPersistId(u64),
5057
}
5158

0 commit comments

Comments
 (0)