@@ -3082,7 +3082,7 @@ macro_rules! try_channel_entry {
30823082 }
30833083}
30843084
3085- macro_rules! remove_channel_phase {
3085+ macro_rules! remove_channel_entry {
30863086 ($self: ident, $peer_state: expr, $entry: expr, $shutdown_res_mut: expr) => {
30873087 {
30883088 let channel = $entry.remove_entry().1;
@@ -3858,7 +3858,7 @@ where
38583858 } else {
38593859 let mut shutdown_res = chan_phase_entry.get_mut().context_mut()
38603860 .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);
38623862 shutdown_result = Some(shutdown_res);
38633863 }
38643864 },
@@ -4110,7 +4110,7 @@ where
41104110 (chan_phase_entry.get_mut().context_mut().force_shutdown(false, closure_reason), None)
41114111 },
41124112 };
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);
41144114 mem::drop(peer_state);
41154115 mem::drop(per_peer_state);
41164116 self.finish_close_channel(shutdown_res);
@@ -8555,7 +8555,7 @@ This indicates a bug inside LDK. Please report this error at https://github.com/
85558555 let logger = WithChannelContext::from(&self.logger, context, None);
85568556 log_error!(logger, "Immediately closing unfunded channel {} as peer asked to cooperatively shut it down (which is unnecessary)", &msg.channel_id);
85578557 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);
85598559 finish_shutdown = Some(close_res);
85608560 },
85618561 }
@@ -8604,7 +8604,7 @@ This indicates a bug inside LDK. Please report this error at https://github.com/
86048604 // fully delete it from tracking (the channel monitor is still around to
86058605 // watch for old state broadcasts)!
86068606 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);
86088608 (tx, Some(channel_phase), Some(close_res))
86098609 } else {
86108610 debug_assert!(tx.is_none());
@@ -9292,7 +9292,7 @@ This indicates a bug inside LDK. Please report this error at https://github.com/
92929292 ClosureReason::HolderForceClosed { broadcasted_latest_txn: Some(true) }
92939293 };
92949294 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);
92969296 failed_channels.push(shutdown_res);
92979297 if let Some(chan) = chan_phase.as_funded() {
92989298 if let Ok(update) = self.get_channel_update_for_broadcast(chan) {
0 commit comments