Skip to content

Commit 9736f85

Browse files
committed
f comment
1 parent 7fc4bf1 commit 9736f85

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lightning/src/ln/channelmanager.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -817,7 +817,7 @@ macro_rules! handle_chan_restoration_locked {
817817
// funding_locked if there have been no commitment updates, so the only channel
818818
// monitor update which could also be associated with a funding_locked would be
819819
// the funding_created/funding_signed monitor update. That monitor update failing
820-
// implies that we won't send funding_locked until its been updated, so we can't
820+
// implies that we won't send funding_locked until it's been updated, so we can't
821821
// have a funding_locked and a monitor update here (so we don't bother to handle it
822822
// correctly below).
823823
assert!($funding_locked.is_none());
@@ -828,6 +828,9 @@ macro_rules! handle_chan_restoration_locked {
828828
}
829829

830830
if let Some(msg) = $funding_locked {
831+
// Similar to the above, this implies that we're letting the funding_locked fly
832+
// before it should be allowed to.
833+
assert!(chanmon_update.is_none());
831834
$channel_state.pending_msg_events.push(events::MessageSendEvent::SendFundingLocked {
832835
node_id: counterparty_node_id,
833836
msg,

0 commit comments

Comments
 (0)