Skip to content

Commit dea1310

Browse files
committed
Ensure current channel state is logged for all channels on startup
1 parent 0b07283 commit dea1310

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lightning/src/ln/channelmanager.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5874,6 +5874,7 @@ impl<'a, Signer: Sign, M: Deref, T: Deref, K: Deref, F: Deref, L: Deref>
58745874
reason: ClosureReason::OutdatedChannelManager
58755875
});
58765876
} else {
5877+
log_info!(args.logger, "Successfully loaded channel {}", log_bytes!(channel.channel_id()));
58775878
if let Some(short_channel_id) = channel.get_short_channel_id() {
58785879
short_to_id.insert(short_channel_id, channel.channel_id());
58795880
}
@@ -5891,6 +5892,7 @@ impl<'a, Signer: Sign, M: Deref, T: Deref, K: Deref, F: Deref, L: Deref>
58915892

58925893
for (ref funding_txo, ref mut monitor) in args.channel_monitors.iter_mut() {
58935894
if !funding_txo_set.contains(funding_txo) {
5895+
log_info!(args.logger, "Broadcasting latest holder commitment transaction for closed channel {}", log_bytes!(funding_txo.to_channel_id()));
58945896
monitor.broadcast_latest_holder_commitment_txn(&args.tx_broadcaster, &args.logger);
58955897
}
58965898
}

0 commit comments

Comments
 (0)