File tree 2 files changed +6
-0
lines changed
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> {
4716
4716
self . is_funding_initiated ( ) && !self . channel_pending_event_emitted
4717
4717
}
4718
4718
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
+
4719
4724
// Remembers that we already emitted a `ChannelPending` event.
4720
4725
pub ( crate ) fn set_channel_pending_event_emitted ( & mut self ) {
4721
4726
self . channel_pending_event_emitted = true ;
Original file line number Diff line number Diff line change @@ -1505,6 +1505,7 @@ macro_rules! emit_channel_pending_event {
1505
1505
macro_rules! emit_channel_ready_event {
1506
1506
( $locked_events: expr, $channel: expr) => {
1507
1507
if $channel. should_emit_channel_ready_event( ) {
1508
+ debug_assert!( $channel. channel_pending_event_emitted( ) ) ;
1508
1509
$locked_events. push( events:: Event :: ChannelReady {
1509
1510
channel_id: $channel. channel_id( ) ,
1510
1511
user_channel_id: $channel. get_user_id( ) ,
You can’t perform that action at this time.
0 commit comments