Skip to content

Commit c13dbbc

Browse files
committed
Use a WithChannelContext in unfunded branch in internal_shutdown
1 parent 8a54da6 commit c13dbbc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lightning/src/ln/channelmanager.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8505,7 +8505,8 @@ where
85058505
},
85068506
ChannelPhase::UnfundedInboundV1(_) | ChannelPhase::UnfundedOutboundV1(_) |
85078507
ChannelPhase::UnfundedInboundV2(_) | ChannelPhase::UnfundedOutboundV2(_) => {
8508-
log_error!(self.logger, "Immediately closing unfunded channel {} as peer asked to cooperatively shut it down (which is unnecessary)", &msg.channel_id);
8508+
let logger = WithChannelContext::from(&self.logger, phase.context(), None);
8509+
log_error!(logger, "Immediately closing unfunded channel {} as peer asked to cooperatively shut it down (which is unnecessary)", &msg.channel_id);
85098510
let mut chan = remove_channel_phase!(self, peer_state, chan_phase_entry);
85108511
finish_shutdown = Some(chan.context_mut().force_shutdown(false, ClosureReason::CounterpartyCoopClosedUnfundedChannel));
85118512
},

0 commit comments

Comments
 (0)