From 6d98aedaf5dba6565839aa1b806ed730e0c7935c Mon Sep 17 00:00:00 2001 From: Matt Corallo Date: Sun, 27 Jun 2021 22:02:15 +0000 Subject: [PATCH] Add debug log when we stop tracking confirmed on-chain packages --- lightning/src/chain/onchaintx.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lightning/src/chain/onchaintx.rs b/lightning/src/chain/onchaintx.rs index cb34c59b3..19bbed58b 100644 --- a/lightning/src/chain/onchaintx.rs +++ b/lightning/src/chain/onchaintx.rs @@ -536,11 +536,14 @@ impl OnchainTxHandler { // been aggregated in a single tx and claimed so atomically if let Some(request) = self.pending_claim_requests.remove(&claim_request) { for outpoint in request.outpoints() { + log_debug!(logger, "Removing claim tracking for {} due to maturation of claim tx {}.", outpoint, claim_request); self.claimable_outpoints.remove(&outpoint); } } }, OnchainEvent::ContentiousOutpoint { package } => { + log_debug!(logger, "Removing claim tracking due to maturation of claim tx for outpoints:"); + log_debug!(logger, " {:?}", package.outpoints()); self.claimable_outpoints.remove(&package.outpoints()[0]); } } -- 2.39.5