Skip to content

Commit a308039

Browse files
committed
f indicate which version stopped creating "legacy" payments
1 parent d221604 commit a308039

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

lightning/src/chain/channelmonitor.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1493,11 +1493,11 @@ impl<Signer: EcdsaChannelSigner> ChannelMonitor<Signer> {
14931493
/// This is used to provide payment preimage(s) out-of-band during startup without updating the
14941494
/// off-chain state with a new commitment transaction.
14951495
///
1496-
/// It is used only for legacy pending payments on upgrade, and the flow that uses it assumes
1497-
/// that this [`ChannelMonitor`] is persisted prior to the [`ChannelManager`] being persisted
1498-
/// (as the state necessary to call this method again is removed from the [`ChannelManager`]
1499-
/// and thus a persistence inversion would imply we do not get the preimage back into this
1500-
/// [`ChannelMonitor`] on startup).
1496+
/// It is used only for legacy (created prior to LDK 0.1) pending payments on upgrade, and the
1497+
/// flow that uses it assumes that this [`ChannelMonitor`] is persisted prior to the
1498+
/// [`ChannelManager`] being persisted (as the state necessary to call this method again is
1499+
/// removed from the [`ChannelManager`] and thus a persistence inversion would imply we do not
1500+
/// get the preimage back into this [`ChannelMonitor`] on startup).
15011501
///
15021502
/// [`ChannelManager`]: crate::ln::channelmanager::ChannelManager
15031503
pub(crate) fn provide_payment_preimage_unsafe_legacy<B: Deref, F: Deref, L: Deref>(

0 commit comments

Comments
 (0)