File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -817,7 +817,7 @@ macro_rules! handle_chan_restoration_locked {
817
817
// funding_locked if there have been no commitment updates, so the only channel
818
818
// monitor update which could also be associated with a funding_locked would be
819
819
// 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
821
821
// have a funding_locked and a monitor update here (so we don't bother to handle it
822
822
// correctly below).
823
823
assert!( $funding_locked. is_none( ) ) ;
@@ -828,6 +828,9 @@ macro_rules! handle_chan_restoration_locked {
828
828
}
829
829
830
830
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( ) ) ;
831
834
$channel_state. pending_msg_events. push( events:: MessageSendEvent :: SendFundingLocked {
832
835
node_id: counterparty_node_id,
833
836
msg,
You can’t perform that action at this time.
0 commit comments