Skip to content

Commit ac695db

Browse files
committed
f update log
1 parent ab0dda7 commit ac695db

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

lightning/src/ln/channelmanager.rs

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8228,8 +8228,14 @@ This indicates a bug inside LDK. Please report this error at https://github.com/
82288228
.and_then(Channel::as_funded_mut)
82298229
{
82308230
if chan.is_awaiting_monitor_update() {
8231-
log_trace!(logger, "Channel is open and awaiting update, resuming it");
8232-
if chan.blocked_monitor_updates_pending() == 0 {
8231+
let should_resume = chan.blocked_monitor_updates_pending() == 0;
8232+
let action_msg = if should_resume {
8233+
"resuming it"
8234+
} else {
8235+
"leaving it blocked due to a blocked monitor update"
8236+
};
8237+
log_trace!(logger, "Channel is open and awaiting update, {action_msg}");
8238+
if should_resume {
82338239
handle_monitor_update_completion!(self, peer_state_lock, peer_state, per_peer_state, chan);
82348240
}
82358241
} else {

0 commit comments

Comments
 (0)