Skip to content

Commit 0b07283

Browse files
committed
Correct txid logging to reverse bytes.
We also take this opportunity to log the channel being closed when one is closed by an on-chain spend of the funding output.
1 parent 293e5f2 commit 0b07283

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lightning/src/chain/channelmonitor.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2355,7 +2355,8 @@ impl<Signer: Sign> ChannelMonitorImpl<Signer> {
23552355
let prevout = &tx.input[0].previous_output;
23562356
if prevout.txid == self.funding_info.0.txid && prevout.vout == self.funding_info.0.index as u32 {
23572357
let mut balance_spendable_csv = None;
2358-
log_info!(logger, "Channel closed by funding output spend in txid {}.", log_bytes!(tx.txid()));
2358+
log_info!(logger, "Channel {} closed by funding output spend in txid {}.",
2359+
log_bytes!(self.funding_info.0.to_channel_id()), tx.txid());
23592360
if (tx.input[0].sequence >> 8*3) as u8 == 0x80 && (tx.lock_time >> 8*3) as u8 == 0x20 {
23602361
let (mut new_outpoints, new_outputs) = self.check_spend_counterparty_transaction(&tx, height, &logger);
23612362
if !new_outputs.1.is_empty() {

0 commit comments

Comments
 (0)