Skip to content

Commit 10ea10e

Browse files
committed
logging all filtered txids
1 parent 743f548 commit 10ea10e

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

lightning/src/chain/channelmonitor.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3351,6 +3351,7 @@ impl<Signer: WriteableEcdsaChannelSigner> ChannelMonitorImpl<Signer> {
33513351
let mut claimable_outpoints = Vec::new();
33523352
'tx_iter: for tx in &txn_matched {
33533353
let txid = tx.txid();
3354+
log_trace!(logger, "Transaction id {} confirmed in block {}", txid , block_hash);
33543355
// If a transaction has already been confirmed, ensure we don't bother processing it duplicatively.
33553356
if Some(txid) == self.funding_spend_confirmed {
33563357
log_debug!(logger, "Skipping redundant processing of funding-spend tx {} as it was previously confirmed", txid);
@@ -3390,8 +3391,6 @@ impl<Signer: WriteableEcdsaChannelSigner> ChannelMonitorImpl<Signer> {
33903391
let mut balance_spendable_csv = None;
33913392
log_info!(logger, "Channel {} closed by funding output spend in txid {}.",
33923393
&self.funding_info.0.to_channel_id(), txid);
3393-
// logging only that spends funding output
3394-
log_trace!(logger, "Transaction id {} confirmed in block {}", txid , block_hash);
33953394
self.funding_spend_seen = true;
33963395
let mut commitment_tx_to_counterparty_output = None;
33973396
if (tx.input[0].sequence.0 >> 8*3) as u8 == 0x80 && (tx.lock_time.0 >> 8*3) as u8 == 0x20 {
@@ -3440,7 +3439,6 @@ impl<Signer: WriteableEcdsaChannelSigner> ChannelMonitorImpl<Signer> {
34403439
if let Some(new_outputs) = new_outputs_option {
34413440
watch_outputs.push(new_outputs);
34423441
}
3443-
log_trace!(logger, "Transaction id {} confirmed in block {}", commitment_txid , block_hash);
34443442
// Since there may be multiple HTLCs for this channel (all spending the
34453443
// same commitment tx) being claimed by the counterparty within the same
34463444
// transaction, and `check_spend_counterparty_htlc` already checks all the

0 commit comments

Comments
 (0)