Merge pull request #2365

bf724327 cryptonote_protocol: remove old spans when received as old blocks (moneromooo-monero)
This commit is contained in:
Riccardo Spagni 2017-09-02 11:34:06 +02:00
commit aa680bf3c6
No known key found for this signature in database
GPG Key ID: 55432DF31CCD4FCD

View File

@ -930,6 +930,7 @@ namespace cryptonote
{ {
const uint64_t subchain_height = start_height + arg.blocks.size(); 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()); 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; goto skip;
} }