File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed
Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -4716,6 +4716,11 @@ impl<Signer: WriteableEcdsaChannelSigner> Channel<Signer> {
47164716 self . is_funding_initiated ( ) && !self . channel_pending_event_emitted
47174717 }
47184718
4719+ // Returns whether we already emitted a `ChannelPending` event.
4720+ pub ( crate ) fn channel_pending_event_emitted ( & self ) -> bool {
4721+ self . channel_pending_event_emitted
4722+ }
4723+
47194724 // Remembers that we already emitted a `ChannelPending` event.
47204725 pub ( crate ) fn set_channel_pending_event_emitted ( & mut self ) {
47214726 self . channel_pending_event_emitted = true ;
Original file line number Diff line number Diff line change @@ -1514,6 +1514,7 @@ macro_rules! emit_channel_pending_event {
15141514macro_rules! emit_channel_ready_event {
15151515 ( $locked_events: expr, $channel: expr) => {
15161516 if $channel. should_emit_channel_ready_event( ) {
1517+ debug_assert!( $channel. channel_pending_event_emitted( ) ) ;
15171518 $locked_events. push( events:: Event :: ChannelReady {
15181519 channel_id: $channel. channel_id( ) ,
15191520 user_channel_id: $channel. get_user_id( ) ,
You can’t perform that action at this time.
0 commit comments