cryptonote_protocol: remove old spans when received as old blocks

fixes getting those in a loop
This commit is contained in:
moneromooo-monero 2017-08-28 00:42:58 +01:00
parent 72b5f37f58
commit 63d8dddc0a
No known key found for this signature in database
GPG key ID: 686F07454D6CEFC3

View file

@ -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;
}