mirror of
https://github.com/monero-project/monero.git
synced 2024-12-23 03:59:33 +00:00
cryptonote_protocol: remove old spans when received as old blocks
fixes getting those in a loop
This commit is contained in:
parent
d8f402ad8f
commit
bf72432734
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue