Skip to content

Commit 1d3b771

Browse files
committed
f rephrase
1 parent 59a71b3 commit 1d3b771

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

lightning/src/chain/chainmonitor.rs

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -163,12 +163,11 @@ pub trait Persist<ChannelSigner: EcdsaChannelSigner> {
163163
/// Archiving the data in a backup location (rather than deleting it fully) is useful for
164164
/// hedging against data loss in case of unexpected failure.
165165
///
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.
166+
/// Note that if a crash occurs during the archiving process, a state may emerge with the
167+
/// archival operation only being partially complete. In that scenario, the monitor may still be
168+
/// loaded on startup pending successful completion of the archive process. Additionally,
169+
/// because the archive operation could be retried on restart, this method must be idempotent,
170+
/// ensuring it can handle scenarios where the monitor already exists in the archive.
172171
fn archive_persisted_channel(&self, channel_funding_outpoint: OutPoint);
173172
}
174173

0 commit comments

Comments
 (0)