Log block tick in ChannelMonitor
authorAntoine Riard <ariard@student.42.fr>
Tue, 10 Dec 2019 21:28:33 +0000 (16:28 -0500)
committerAntoine Riard <ariard@student.42.fr>
Tue, 10 Dec 2019 22:42:58 +0000 (17:42 -0500)
lightning/src/ln/channelmonitor.rs

index 0084cbb26e798fc830b74b6a6cdabd47daed9b77..296709d10b332aeca2366d67445b6ed4261824a7 100644 (file)
@@ -2327,6 +2327,7 @@ impl ChannelMonitor {
        }
 
        fn block_connected(&mut self, txn_matched: &[&Transaction], height: u32, block_hash: &Sha256dHash, broadcaster: &BroadcasterInterface, fee_estimator: &FeeEstimator)-> (Vec<(Sha256dHash, Vec<TxOut>)>, Vec<SpendableOutputDescriptor>, Vec<(HTLCSource, Option<PaymentPreimage>, PaymentHash)>) {
+               log_trace!(self, "Block {} at height {} connected with {} txn matched", block_hash, height, txn_matched.len());
                let mut watch_outputs = Vec::new();
                let mut spendable_outputs = Vec::new();
                let mut htlc_updated = Vec::new();