]> git.bitcoin.ninja Git - rust-lightning/commitdiff
Add debug log when we stop tracking confirmed on-chain packages 2021-06-log-cleanups
authorMatt Corallo <git@bluematt.me>
Sun, 27 Jun 2021 22:02:15 +0000 (22:02 +0000)
committerMatt Corallo <git@bluematt.me>
Tue, 29 Jun 2021 19:36:47 +0000 (19:36 +0000)
lightning/src/chain/onchaintx.rs

index cb34c59b3995daf36bceea7a755a70a27e094878..19bbed58b732345d2dc5fa6b11b685d5fd901a7a 100644 (file)
@@ -536,11 +536,14 @@ impl<ChannelSigner: Sign> OnchainTxHandler<ChannelSigner> {
                                                // 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]);
                                        }
                                }