@@ -3728,7 +3728,7 @@ where
3728
3728
.filter_map(|(chan_id, chan)| chan.as_funded().map(|chan| (chan_id, chan)))
3729
3729
.filter(f)
3730
3730
.map(|(_channel_id, channel)| {
3731
- ChannelDetails::from_channel_context(& channel.context, best_block_height,
3731
+ ChannelDetails::from_channel_context(channel.context() , best_block_height,
3732
3732
peer_state.latest_features.clone(), &self.fee_estimator)
3733
3733
})
3734
3734
);
@@ -6541,8 +6541,8 @@ where
6541
6541
chan.context_mut().maybe_expire_prev_config();
6542
6542
let unfunded_context = chan.unfunded_context_mut().expect("channel should be unfunded");
6543
6543
if unfunded_context.should_expire_unfunded_channel() {
6544
- let context = chan.context_mut();
6545
- let logger = WithChannelContext::from(&self.logger, context, None);
6544
+ let mut context = chan.context_mut();
6545
+ let logger = WithChannelContext::from(&self.logger, & context, None);
6546
6546
log_error!(logger,
6547
6547
"Force-closing pending channel with ID {} for not establishing in a timely manner",
6548
6548
context.channel_id());
@@ -8551,8 +8551,8 @@ This indicates a bug inside LDK. Please report this error at https://github.com/
8551
8551
}
8552
8552
},
8553
8553
None => {
8554
- let context = chan_entry.get_mut().context_mut();
8555
- let logger = WithChannelContext::from(&self.logger, context, None);
8554
+ let mut context = chan_entry.get_mut().context_mut();
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
8558
remove_channel_entry!(self, peer_state, chan_entry, close_res);
@@ -9497,8 +9497,8 @@ This indicates a bug inside LDK. Please report this error at https://github.com/
9497
9497
_ => unblock_chan(chan, &mut peer_state.pending_msg_events),
9498
9498
};
9499
9499
if let Some(mut shutdown_result) = shutdown_result {
9500
- let context = & chan.context();
9501
- let logger = WithChannelContext::from(&self.logger, context, None);
9500
+ let context = chan.context();
9501
+ let logger = WithChannelContext::from(&self.logger, & context, None);
9502
9502
log_trace!(logger, "Removing channel {} now that the signer is unblocked", context.channel_id());
9503
9503
locked_close_channel!(self, peer_state, context, shutdown_result);
9504
9504
shutdown_results.push(shutdown_result);
@@ -11534,7 +11534,7 @@ where
11534
11534
return true;
11535
11535
}
11536
11536
// Clean up for removal.
11537
- let context = chan.context_mut();
11537
+ let mut context = chan.context_mut();
11538
11538
let mut close_res = context.force_shutdown(false, ClosureReason::DisconnectedPeer);
11539
11539
locked_close_channel!(self, peer_state, &context, close_res);
11540
11540
failed_channels.push(close_res);
0 commit comments