aboutsummaryrefslogtreecommitdiff
path: root/src/cryptonote_protocol
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2017-09-02 11:34:06 +0200
committerRiccardo Spagni <ric@spagni.net>2017-09-02 11:34:06 +0200
commitaa680bf3c6c7e4b9f0caad5c5f3df8c3256dedc8 (patch)
tree1c3591439665029e1444e2860fbee2ff3ffe952b /src/cryptonote_protocol
parentMerge pull request #2363 (diff)
parentcryptonote_protocol: remove old spans when received as old blocks (diff)
downloadmonero-aa680bf3c6c7e4b9f0caad5c5f3df8c3256dedc8.tar.xz
Merge pull request #2365
bf724327 cryptonote_protocol: remove old spans when received as old blocks (moneromooo-monero)
Diffstat (limited to 'src/cryptonote_protocol')
-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;
}