Skip to content

Commit 688147a

Browse files
authored
Merge pull request #2992 from G8XSU/monitor-update-seq-doc
Doc Clarity: Handling gaps in persisted ChannelMonitorUpdates.
2 parents 93c5bd1 + 29451bf commit 688147a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lightning/src/chain/chainmonitor.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,9 @@ pub trait Persist<ChannelSigner: EcdsaChannelSigner> {
136136
/// If an implementer chooses to persist the updates only, they need to make
137137
/// sure that all the updates are applied to the `ChannelMonitors` *before*
138138
/// the set of channel monitors is given to the `ChannelManager`
139-
/// deserialization routine. See [`ChannelMonitor::update_monitor`] for
139+
/// deserialization routine. If there are any gaps in the persisted [`ChannelMonitorUpdate`]s,
140+
/// implementer can safely ignore [`ChannelMonitorUpdate`]s after the gap and load without them.
141+
/// See [`ChannelMonitor::update_monitor`] for
140142
/// applying a monitor update to a monitor. If full `ChannelMonitors` are
141143
/// persisted, then there is no need to persist individual updates.
142144
///

0 commit comments

Comments
 (0)