From 63d8dddc0abab501d56b03659b928f472651b978 Mon Sep 17 00:00:00 2001 From: moneromooo-monero Date: Mon, 28 Aug 2017 00:42:58 +0100 Subject: cryptonote_protocol: remove old spans when received as old blocks fixes getting those in a loop --- src/cryptonote_protocol/cryptonote_protocol_handler.inl | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/cryptonote_protocol/cryptonote_protocol_handler.inl b/src/cryptonote_protocol/cryptonote_protocol_handler.inl index e762cf9c8..4fe1f1fc1 100644 --- a/src/cryptonote_protocol/cryptonote_protocol_handler.inl +++ b/src/cryptonote_protocol/cryptonote_protocol_handler.inl @@ -930,6 +930,7 @@ namespace cryptonote { const uint64_t subchain_height = start_height + arg.blocks.size(); LOG_DEBUG_CC(context, "These are old blocks, ignoring: blocks " << start_height << " - " << (subchain_height-1) << ", blockchain height " << m_core.get_current_blockchain_height()); + m_block_queue.remove_spans(context.m_connection_id, start_height); goto skip; } -- cgit v1.2.3