aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2017-08-28 00:42:58 +0100
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2017-08-28 00:54:23 +0100
commitbf72432734b574205903b2f40e25c1da794c2bb1 (patch)
tree3bb4b0dada5aad2d93c8f96433f75c1c32492664 /src
parentMerge pull request #2343 (diff)
downloadmonero-bf72432734b574205903b2f40e25c1da794c2bb1.tar.xz
cryptonote_protocol: remove old spans when received as old blocks
fixes getting those in a loop
Diffstat (limited to 'src')
-rw-r--r--src/cryptonote_protocol/cryptonote_protocol_handler.inl1
1 files changed, 1 insertions, 0 deletions
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;
}