mirror of
https://github.com/monero-project/monero.git
synced 2024-12-23 12:09:54 +00:00
protocol: fix switchting to adding blocks if noone's adding the next span
This commit is contained in:
parent
065bb292df
commit
e83a220603
1 changed files with 1 additions and 2 deletions
|
@ -2260,8 +2260,7 @@ skip:
|
|||
uint64_t start_height;
|
||||
std::vector<cryptonote::block_complete_entry> blocks;
|
||||
boost::uuids::uuid span_connection_id;
|
||||
bool filled = false;
|
||||
if (m_block_queue.get_next_span(start_height, blocks, span_connection_id, filled) && filled)
|
||||
if (m_block_queue.get_next_span(start_height, blocks, span_connection_id, true))
|
||||
{
|
||||
LOG_DEBUG_CC(context, "No other thread is adding blocks, resuming");
|
||||
MLOG_PEER_STATE("will try to add blocks next");
|
||||
|
|
Loading…
Reference in a new issue