File tree 1 file changed +4
-3
lines changed 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -170,14 +170,15 @@ struct MonitorHolder<ChannelSigner: EcdsaChannelSigner> {
170
170
/// Note that this lock must be held from [`ChannelMonitor::update_monitor`] through to
171
171
/// [`Persist::update_persisted_channel`] to prevent a race where we call
172
172
/// [`Persist::update_persisted_channel`], the user returns a
173
- /// [`ChannelMonitorUpdateStatus::InProgress`], and then calls channel_monitor_updated
174
- /// immediately, racing our insertion of the pending update into the contained Vec.
173
+ /// [`ChannelMonitorUpdateStatus::InProgress`], and then calls
174
+ /// [`ChainMonitor::channel_monitor_updated`] immediately, racing our insertion of the pending
175
+ /// update into the contained Vec.
175
176
///
176
177
/// This also avoids a race where we update a [`ChannelMonitor`], then while connecting a block
177
178
/// persist a full [`ChannelMonitor`] prior to persisting the [`ChannelMonitorUpdate`]. This
178
179
/// could cause users to have a full [`ChannelMonitor`] on disk as well as a
179
180
/// [`ChannelMonitorUpdate`] which was already applied. While this isn't an issue for the
180
- /// LDK-provided update-based [`Persist`], its somewhat surprising for users so we avoid it.
181
+ /// LDK-provided update-based [`Persist`], it is somewhat surprising for users so we avoid it.
181
182
pending_monitor_updates : Mutex < Vec < u64 > > ,
182
183
}
183
184
You can’t perform that action at this time.
0 commit comments