Merge pull request #7109

e83a220 protocol: fix switchting to adding blocks if noone's adding the next span (moneromooo-monero)
remotes/1691602464505633909/tmp_refs/heads/wonerujo-v0.10.1
luigi1111 3 years ago
commit f570ce1349
No known key found for this signature in database
GPG Key ID: F4ACA0183641E010

@ -2309,8 +2309,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…
Cancel
Save