diff options
| author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2020-12-10 15:44:38 +0000 |
|---|---|---|
| committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2020-12-10 15:46:48 +0000 |
| commit | 19f77578e0bc63b66db23c0bf5fef66d5403a0b7 (patch) | |
| tree | 13aa913710d5e75aae6a919ad144429770613575 /src/cryptonote_protocol/cryptonote_protocol_handler.inl | |
| parent | b7425c14c8e7f2fda81d345829ff7e1bc0c382d3 (diff) | |
| download | monzero-core-19f77578e0bc63b66db23c0bf5fef66d5403a0b7.tar.gz monzero-core-19f77578e0bc63b66db23c0bf5fef66d5403a0b7.tar.xz monzero-core-19f77578e0bc63b66db23c0bf5fef66d5403a0b7.zip | |
protocol: fix switchting to adding blocks if noone's adding the next span
Diffstat (limited to 'src/cryptonote_protocol/cryptonote_protocol_handler.inl')
| -rw-r--r-- | src/cryptonote_protocol/cryptonote_protocol_handler.inl | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/cryptonote_protocol/cryptonote_protocol_handler.inl b/src/cryptonote_protocol/cryptonote_protocol_handler.inl index 25b14d903..c62a0cd31 100644 --- a/src/cryptonote_protocol/cryptonote_protocol_handler.inl +++ b/src/cryptonote_protocol/cryptonote_protocol_handler.inl @@ -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"); |
