Opportunistically skip log in `update_claims_view_from_requests`
authorMatt Corallo <git@bluematt.me>
Tue, 13 Feb 2024 23:33:18 +0000 (23:33 +0000)
committerMatt Corallo <git@bluematt.me>
Tue, 13 Feb 2024 23:43:02 +0000 (23:43 +0000)
commit9125de22c5269d67b76a06fd66fa88fb1d68414c
treed47d997f7ec0be08630f643ab3b41ad0d91f4fcc
parentaab5b102e47a46a57569606328f880fa1f91e597
Opportunistically skip log in `update_claims_view_from_requests`

On each block, for each `ChannelMonitor`, we log a status statement
in `OnChainTx::update_claims_view_from_requests`. 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 the log if we have no claims to work with, but retain
it if we process any claims.
lightning/src/chain/onchaintx.rs