diff --git a/p2p/cuprate-p2p/src/block_downloader.rs b/p2p/cuprate-p2p/src/block_downloader.rs index 85798c2c..15d6a3ef 100644 --- a/p2p/cuprate-p2p/src/block_downloader.rs +++ b/p2p/cuprate-p2p/src/block_downloader.rs @@ -1,6 +1,5 @@ //! # Block Downloader //! -use indexmap::IndexSet; use std::{ cmp::{max, min, Ordering, Reverse}, collections::{BTreeMap, BinaryHeap, HashSet}, @@ -691,7 +690,7 @@ where self.check_pending_peers(&mut chain_tracker).await; } - Err(_) => {} + Err(_) => self.amount_of_empty_chain_entries += 1 } } else => { diff --git a/p2p/cuprate-p2p/src/block_downloader/chain_tracker.rs b/p2p/cuprate-p2p/src/block_downloader/chain_tracker.rs index 829f92f3..5221dc81 100644 --- a/p2p/cuprate-p2p/src/block_downloader/chain_tracker.rs +++ b/p2p/cuprate-p2p/src/block_downloader/chain_tracker.rs @@ -3,7 +3,6 @@ use std::{cmp::min, collections::VecDeque}; use monero_p2p::{client::InternalPeerID, handles::ConnectionHandle, NetworkZone}; use monero_pruning::{PruningSeed, CRYPTONOTE_MAX_BLOCK_HEIGHT}; -use monero_wire::protocol::ChainResponse; use crate::constants::MEDIUM_BAN;