Skip to content

Commit 3641bca

Browse files
committed
Use a WithChannelContext in unfunded branch in internal_shutdown
1 parent 12920d8 commit 3641bca

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
@@ -8510,7 +8510,8 @@ where
85108510
},
85118511
ChannelPhase::UnfundedInboundV1(_) | ChannelPhase::UnfundedOutboundV1(_) |
85128512
ChannelPhase::UnfundedInboundV2(_) | ChannelPhase::UnfundedOutboundV2(_) => {
8513-
log_error!(self.logger, "Immediately closing unfunded channel {} as peer asked to cooperatively shut it down (which is unnecessary)", &msg.channel_id);
8513+
let logger = WithChannelContext::from(&self.logger, phase.context(), None);
8514+
log_error!(logger, "Immediately closing unfunded channel {} as peer asked to cooperatively shut it down (which is unnecessary)", &msg.channel_id);
85148515
let mut chan = remove_channel_phase!(self, peer_state, chan_phase_entry);
85158516
finish_shutdown = Some(chan.context_mut().force_shutdown(false, ClosureReason::CounterpartyCoopClosedUnfundedChannel));
85168517
},

0 commit comments

Comments
 (0)