From cb53ae76f36f4540474691ec6fecff04318a2b18 Mon Sep 17 00:00:00 2001 From: Antoine Riard Date: Sun, 30 Dec 2018 14:21:58 -0500 Subject: [PATCH] Log resolution of offered HTLC by HTLC-timeout tx --- src/ln/channelmonitor.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/ln/channelmonitor.rs b/src/ln/channelmonitor.rs index 5415fefec..4ebeba047 100644 --- a/src/ln/channelmonitor.rs +++ b/src/ln/channelmonitor.rs @@ -1815,9 +1815,12 @@ impl ChannelMonitor { } if payment_data.is_none() { for htlc_output in $htlc_outputs { - if input.previous_output.vout == htlc_output.transaction_output_index { + if input.previous_output.vout == htlc_output.transaction_output_index && !htlc_output.offered { log_info!(self, "Input spending {}:{} in {} resolves inbound HTLC with timeout from {}", input.previous_output.txid, input.previous_output.vout, tx.txid(), $source); continue 'outer_loop; + } else if input.previous_output.vout == htlc_output.transaction_output_index && tx.lock_time > 0 { + log_info!(self, "Input spending {}:{} in {} resolves offered HTLC with HTLC-timeout from {}", input.previous_output.txid, input.previous_output.vout, tx.txid(), $source); + continue 'outer_loop; } } } -- 2.39.5