Opportunistically skip log in `update_claims_view_from_matched_txn` 2024-02-logging-tweaks
authorMatt Corallo <git@bluematt.me>
Tue, 13 Feb 2024 23:43:19 +0000 (23:43 +0000)
committerMatt Corallo <git@bluematt.me>
Tue, 13 Feb 2024 23:43:19 +0000 (23:43 +0000)
commit89101531aa65169c3459cfd38094b9c6f4af7b22
tree4002ba143ad6989ccdaf2bd98d539cac86a58530
parent9125de22c5269d67b76a06fd66fa88fb1d68414c
Opportunistically skip log in `update_claims_view_from_matched_txn`

On each block, for each `ChannelMonitor`, we log two status
statements in `OnChainTx::update_claims_view_from_matched_txn`.
This can add up to quite a bit, and is generally not very
interesting when we don't actually do anything if there's no claims
to bump.

Here we drop both logs if we have no claims to work with, but
retain it if we process any claims.
lightning/src/chain/onchaintx.rs