From: Antoine Riard Date: Wed, 26 Feb 2020 23:21:53 +0000 (-0500) Subject: Add more logs in OnchainTxHandler X-Git-Tag: v0.0.12~101^2 X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=commitdiff_plain;h=refs%2Fheads%2F2020-03-519-nits;p=rust-lightning Add more logs in OnchainTxHandler --- diff --git a/lightning/src/ln/onchaintx.rs b/lightning/src/ln/onchaintx.rs index 3e985a37f..3f21d4c1f 100644 --- a/lightning/src/ln/onchaintx.rs +++ b/lightning/src/ln/onchaintx.rs @@ -482,6 +482,7 @@ impl OnchainTxHandler { where B::Target: BroadcasterInterface, F::Target: FeeEstimator { + log_trace!(self, "Block at height {} connected with {} claim requests", height, claimable_outpoints.len()); let mut new_claims = Vec::new(); let mut aggregated_claim = HashMap::new(); let mut aggregated_soonest = ::std::u32::MAX; @@ -638,6 +639,7 @@ impl OnchainTxHandler { } // Build, bump and rebroadcast tx accordingly + log_trace!(self, "Bumping {} candidates", bump_candidates.len()); for first_claim_txid in bump_candidates.iter() { if let Some((new_timer, new_feerate)) = { if let Some(claim_material) = self.pending_claim_requests.get(first_claim_txid) {