Skip to content

Commit fd22aa0

Browse files
committed
f update comment to remove bogus reference to monitor restoration
1 parent 74ab4d5 commit fd22aa0

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

lightning/src/ln/channelmanager.rs

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -882,13 +882,12 @@ macro_rules! handle_chan_restoration_locked {
882882

883883
let chanmon_update: Option<ChannelMonitorUpdate> = $chanmon_update; // Force type-checking to resolve
884884
if chanmon_update.is_some() {
885-
// On reconnect (or monitor restoration), we, by definition, only resend a
886-
// funding_locked if there have been no commitment updates, so the only channel
887-
// monitor update which could also be associated with a funding_locked would be
888-
// the funding_created/funding_signed monitor update. That monitor update failing
889-
// implies that we won't send funding_locked until it's been updated, so we can't
890-
// have a funding_locked and a monitor update here (so we don't bother to handle it
891-
// correctly below).
885+
// On reconnect, we, by definition, only resend a funding_locked if there have been
886+
// no commitment updates, so the only channel monitor update which could also be
887+
// associated with a funding_locked would be the funding_created/funding_signed
888+
// monitor update. That monitor update failing implies that we won't send
889+
// funding_locked until it's been updated, so we can't have a funding_locked and a
890+
// monitor update here (so we don't bother to handle it correctly below).
892891
assert!($funding_locked.is_none());
893892
// A channel monitor update makes no sense without either a funding_locked or a
894893
// commitment update to process after it. Since we can't have a funding_locked, we

0 commit comments

Comments
 (0)