@@ -3082,7 +3082,7 @@ macro_rules! try_channel_entry {
3082
3082
}
3083
3083
}
3084
3084
3085
- macro_rules! remove_channel_phase {
3085
+ macro_rules! remove_channel_entry {
3086
3086
($self: ident, $peer_state: expr, $entry: expr, $shutdown_res_mut: expr) => {
3087
3087
{
3088
3088
let channel = $entry.remove_entry().1;
@@ -3858,7 +3858,7 @@ where
3858
3858
} else {
3859
3859
let mut shutdown_res = chan_phase_entry.get_mut().context_mut()
3860
3860
.force_shutdown(false, ClosureReason::HolderForceClosed { broadcasted_latest_txn: Some(false) });
3861
- remove_channel_phase !(self, peer_state, chan_phase_entry, shutdown_res);
3861
+ remove_channel_entry !(self, peer_state, chan_phase_entry, shutdown_res);
3862
3862
shutdown_result = Some(shutdown_res);
3863
3863
}
3864
3864
},
@@ -4110,7 +4110,7 @@ where
4110
4110
(chan_phase_entry.get_mut().context_mut().force_shutdown(false, closure_reason), None)
4111
4111
},
4112
4112
};
4113
- let chan_phase = remove_channel_phase !(self, peer_state, chan_phase_entry, shutdown_res);
4113
+ let chan_phase = remove_channel_entry !(self, peer_state, chan_phase_entry, shutdown_res);
4114
4114
mem::drop(peer_state);
4115
4115
mem::drop(per_peer_state);
4116
4116
self.finish_close_channel(shutdown_res);
@@ -8555,7 +8555,7 @@ This indicates a bug inside LDK. Please report this error at https://github.com/
8555
8555
let logger = WithChannelContext::from(&self.logger, context, None);
8556
8556
log_error!(logger, "Immediately closing unfunded channel {} as peer asked to cooperatively shut it down (which is unnecessary)", &msg.channel_id);
8557
8557
let mut close_res = context.force_shutdown(false, ClosureReason::CounterpartyCoopClosedUnfundedChannel);
8558
- remove_channel_phase !(self, peer_state, chan_phase_entry, close_res);
8558
+ remove_channel_entry !(self, peer_state, chan_phase_entry, close_res);
8559
8559
finish_shutdown = Some(close_res);
8560
8560
},
8561
8561
}
@@ -8604,7 +8604,7 @@ This indicates a bug inside LDK. Please report this error at https://github.com/
8604
8604
// fully delete it from tracking (the channel monitor is still around to
8605
8605
// watch for old state broadcasts)!
8606
8606
debug_assert!(tx.is_some());
8607
- let channel_phase = remove_channel_phase !(self, peer_state, chan_phase_entry, close_res);
8607
+ let channel_phase = remove_channel_entry !(self, peer_state, chan_phase_entry, close_res);
8608
8608
(tx, Some(channel_phase), Some(close_res))
8609
8609
} else {
8610
8610
debug_assert!(tx.is_none());
@@ -9292,7 +9292,7 @@ This indicates a bug inside LDK. Please report this error at https://github.com/
9292
9292
ClosureReason::HolderForceClosed { broadcasted_latest_txn: Some(true) }
9293
9293
};
9294
9294
let mut shutdown_res = chan_phase_entry.get_mut().context_mut().force_shutdown(false, reason.clone());
9295
- let chan_phase = remove_channel_phase !(self, peer_state, chan_phase_entry, shutdown_res);
9295
+ let chan_phase = remove_channel_entry !(self, peer_state, chan_phase_entry, shutdown_res);
9296
9296
failed_channels.push(shutdown_res);
9297
9297
if let Some(chan) = chan_phase.as_funded() {
9298
9298
if let Ok(update) = self.get_channel_update_for_broadcast(chan) {
0 commit comments