We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e057746 commit 9018b0cCopy full SHA for 9018b0c
lightning/src/ln/channelmanager.rs
@@ -1706,6 +1706,10 @@ macro_rules! process_events_body {
1706
$event_to_handle = event;
1707
$handle_event;
1708
let mut pending_events = $self.pending_events.lock().unwrap();
1709
+ // We're required to take the `pending_events_processor` lock any time we
1710
+ // change `pending_events`, however have no general way to enforce that.
1711
+ // Instead, here, we assert that the next event hasn't changed out from under
1712
+ // us.
1713
#[cfg(debug_assertions)] {
1714
debug_assert_eq!(_ev_clone, pending_events.front().unwrap().0);
1715
}
0 commit comments