]> git.bitcoin.ninja Git - rust-lightning/commit
Debug-log monitor update starts and completions in `ChainMonitor` 2024-04-log-in-flights
authorMatt Corallo <git@bluematt.me>
Thu, 11 Apr 2024 21:53:44 +0000 (21:53 +0000)
committerMatt Corallo <git@bluematt.me>
Mon, 22 Apr 2024 12:21:33 +0000 (12:21 +0000)
commit93e77632d61481e912d2630395c30ff9ec71ead6
tree4bf704b896fda3ad100a147598b5e033cb1e9667
parent10480f009e6e57cd409916ea08ac679b0953e4d5
Debug-log monitor update starts and completions in `ChainMonitor`

When a `ChannelMonitor[Update]` persistence completes, we rely on
logging in `ChannelManager` to hear about it. However, this won't
happen at all if there's still pending updates as no `MonitorEvent`
will be generated.

Thus, here, we add logging directly in `ChainMonitor`, ensuring we
can deduce when individual updates completed from debug logs.
lightning/src/chain/chainmonitor.rs