]> git.bitcoin.ninja Git - rust-lightning/commitdiff
Log block disconnection in ChannelMonitor
authorAntoine Riard <ariard@student.42.fr>
Fri, 17 Jan 2020 19:20:23 +0000 (14:20 -0500)
committerAntoine Riard <ariard@student.42.fr>
Fri, 17 Jan 2020 19:20:23 +0000 (14:20 -0500)
lightning/src/ln/channelmonitor.rs

index b9527f599b246552056cd5b98a6866c0fb4514f8..1753e16dcc7351a1b0f50a7245086bf08a58c295 100644 (file)
@@ -2556,6 +2556,7 @@ impl ChannelMonitor {
        }
 
        fn block_disconnected(&mut self, height: u32, block_hash: &Sha256dHash, broadcaster: &BroadcasterInterface, fee_estimator: &FeeEstimator) {
+               log_trace!(self, "Block {} at height {} disconnected", block_hash, height);
                let mut bump_candidates = HashMap::new();
                if let Some(events) = self.onchain_events_waiting_threshold_conf.remove(&(height + ANTI_REORG_DELAY - 1)) {
                        //We may discard: