-f nonify chan_id of from_chan_no_close
[rust-lightning] / lightning / src / ln / channelmanager.rs
index dcc80382c33a9ea9728ba4eb4a3a3c96d95472d6..482c1a2af464e4eed0f681e3020fcde9d5abf56f 100644 (file)
@@ -324,7 +324,7 @@ impl MsgHandleErrInternal {
                                        },
                                },
                        },
-                       chan_id: Some(channel_id),
+                       chan_id: None,
                        shutdown_finish: None,
                }
        }
@@ -824,6 +824,7 @@ macro_rules! handle_error {
                                        // In testing, ensure there are no deadlocks where the lock is already held upon
                                        // entering the macro.
                                        assert!($self.channel_state.try_lock().is_ok());
+                                       assert!($self.pending_events.try_lock().is_ok());
                                }
 
                                let mut msg_events = Vec::with_capacity(2);