@@ -3074,7 +3074,7 @@ macro_rules! try_channel_entry {
3074
3074
}
3075
3075
}
3076
3076
3077
- macro_rules! remove_channel_phase {
3077
+ macro_rules! remove_channel_entry {
3078
3078
($self: ident, $peer_state: expr, $entry: expr, $shutdown_res_mut: expr) => {
3079
3079
{
3080
3080
let channel = $entry.remove_entry().1;
@@ -3850,7 +3850,7 @@ where
3850
3850
} else {
3851
3851
let mut shutdown_res = chan_phase_entry.get_mut().context_mut()
3852
3852
.force_shutdown(false, ClosureReason::HolderForceClosed { broadcasted_latest_txn: Some(false) });
3853
- remove_channel_phase !(self, peer_state, chan_phase_entry, shutdown_res);
3853
+ remove_channel_entry !(self, peer_state, chan_phase_entry, shutdown_res);
3854
3854
shutdown_result = Some(shutdown_res);
3855
3855
}
3856
3856
},
@@ -4102,7 +4102,7 @@ where
4102
4102
(chan_phase_entry.get_mut().context_mut().force_shutdown(false, closure_reason), None)
4103
4103
},
4104
4104
};
4105
- let chan_phase = remove_channel_phase !(self, peer_state, chan_phase_entry, shutdown_res);
4105
+ let chan_phase = remove_channel_entry !(self, peer_state, chan_phase_entry, shutdown_res);
4106
4106
mem::drop(peer_state);
4107
4107
mem::drop(per_peer_state);
4108
4108
self.finish_close_channel(shutdown_res);
@@ -8563,7 +8563,7 @@ This indicates a bug inside LDK. Please report this error at https://github.com/
8563
8563
let logger = WithChannelContext::from(&self.logger, context, None);
8564
8564
log_error!(logger, "Immediately closing unfunded channel {} as peer asked to cooperatively shut it down (which is unnecessary)", &msg.channel_id);
8565
8565
let mut close_res = context.force_shutdown(false, ClosureReason::CounterpartyCoopClosedUnfundedChannel);
8566
- remove_channel_phase !(self, peer_state, chan_phase_entry, close_res);
8566
+ remove_channel_entry !(self, peer_state, chan_phase_entry, close_res);
8567
8567
finish_shutdown = Some(close_res);
8568
8568
},
8569
8569
}
@@ -8612,7 +8612,7 @@ This indicates a bug inside LDK. Please report this error at https://github.com/
8612
8612
// fully delete it from tracking (the channel monitor is still around to
8613
8613
// watch for old state broadcasts)!
8614
8614
debug_assert!(tx.is_some());
8615
- let channel_phase = remove_channel_phase !(self, peer_state, chan_phase_entry, close_res);
8615
+ let channel_phase = remove_channel_entry !(self, peer_state, chan_phase_entry, close_res);
8616
8616
(tx, Some(channel_phase), Some(close_res))
8617
8617
} else {
8618
8618
debug_assert!(tx.is_none());
@@ -9347,7 +9347,7 @@ This indicates a bug inside LDK. Please report this error at https://github.com/
9347
9347
ClosureReason::HolderForceClosed { broadcasted_latest_txn: Some(true) }
9348
9348
};
9349
9349
let mut shutdown_res = chan_phase_entry.get_mut().context_mut().force_shutdown(false, reason.clone());
9350
- let chan_phase = remove_channel_phase !(self, peer_state, chan_phase_entry, shutdown_res);
9350
+ let chan_phase = remove_channel_entry !(self, peer_state, chan_phase_entry, shutdown_res);
9351
9351
failed_channels.push(shutdown_res);
9352
9352
if let Some(chan) = chan_phase.as_funded() {
9353
9353
if let Ok(update) = self.get_channel_update_for_broadcast(chan) {
0 commit comments