File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -162,6 +162,13 @@ pub trait Persist<ChannelSigner: EcdsaChannelSigner> {
162
162
///
163
163
/// Archiving the data in a backup location (rather than deleting it fully) is useful for
164
164
/// hedging against data loss in case of unexpected failure.
165
+ ///
166
+ /// Note that if a crash occurs during the archiving process, a state may emerge where the
167
+ /// monitor is copied to the archive path but isn't removed yet. In that scenario, the monitor
168
+ /// would still end up being loaded on startup pending successful archival completion.
169
+ /// Additionally, this scenario might see the monitor being written to the archive path twice,
170
+ /// which is why this method must be idempotent and be able to handle monitors already existing
171
+ /// in the archive directory.
165
172
fn archive_persisted_channel ( & self , channel_funding_outpoint : OutPoint ) ;
166
173
}
167
174
You can’t perform that action at this time.
0 commit comments