mirror of
https://git.wownero.com/wownero/wownero.git
synced 2024-08-15 01:03:23 +00:00
cryptonote_protocol: fix "holes" in block download schedule
This commit is contained in:
parent
3da1edfde5
commit
35e01a6e50
1 changed files with 2 additions and 1 deletions
|
@ -959,6 +959,8 @@ namespace cryptonote
|
|||
MDEBUG(context << " adding span: " << arg.blocks.size() << " at height " << start_height << ", " << dt.total_microseconds()/1e6 << " seconds, " << (rate/1e3) << " kB/s, size now " << (m_block_queue.get_data_size() + blocks_size) / 1048576.f << " MB");
|
||||
m_block_queue.add_blocks(start_height, arg.blocks, context.m_connection_id, rate, blocks_size);
|
||||
|
||||
context.m_last_known_hash = cryptonote::get_blob_hash(arg.blocks.back().block);
|
||||
|
||||
if (m_core.get_test_drop_download() && m_core.get_test_drop_download_height()) { // DISCARD BLOCKS for testing
|
||||
|
||||
// We try to lock the sync lock. If we can, it means no other thread is
|
||||
|
@ -1521,7 +1523,6 @@ skip:
|
|||
{
|
||||
context.m_needed_objects.push_back(bl_id);
|
||||
}
|
||||
context.m_last_known_hash = context.m_needed_objects.back();
|
||||
|
||||
if (!request_missing_objects(context, false))
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue