From 4be201641d262deca678ded5772fdc51cfa86b3e Mon Sep 17 00:00:00 2001 From: Antoine Riard Date: Tue, 13 Jul 2021 12:59:39 -0400 Subject: [PATCH] Add `pending_events` deadlock detection in `handle_error` --- lightning/src/ln/channelmanager.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/lightning/src/ln/channelmanager.rs b/lightning/src/ln/channelmanager.rs index dcc80382c..9e0f69dff 100644 --- a/lightning/src/ln/channelmanager.rs +++ b/lightning/src/ln/channelmanager.rs @@ -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); -- 2.39.5