]> git.bitcoin.ninja Git - rust-lightning/commitdiff
f - Remove printing when blocks are (dis)connected
authorJeffrey Czyz <jkczyz@gmail.com>
Fri, 19 Feb 2021 02:01:58 +0000 (18:01 -0800)
committerJeffrey Czyz <jkczyz@gmail.com>
Mon, 22 Feb 2021 16:49:14 +0000 (08:49 -0800)
lightning-block-sync/src/lib.rs

index 84051a6960a353fc929c3abf4a01a14eaafbca71..2ba142bd3507fbb7c2da61d455255121a36e1eb4 100644 (file)
@@ -227,7 +227,6 @@ impl<C: Cache> ChainNotifier<C> {
 
                let mut new_tip = *old_header;
                for header in difference.disconnected_blocks.drain(..) {
-                       println!("Disconnecting block {}", header.block_hash);
                        if let Some(cached_header) = self.header_cache.block_disconnected(&header.block_hash) {
                                assert_eq!(cached_header, header);
                        }
@@ -241,7 +240,6 @@ impl<C: Cache> ChainNotifier<C> {
                                .or_else(|e| Err((e, Some(new_tip))))?;
                        debug_assert_eq!(block.block_hash, header.block_hash);
 
-                       println!("Connecting block {}", header.block_hash);
                        self.header_cache.block_connected(header.block_hash, header);
                        chain_listener.block_connected(&block, header.height);
                        new_tip = header;