mirror of
https://github.com/monero-project/monero.git
synced 2025-08-16 18:00:50 -04:00
protocol: speed up sync by minimizing duplicate work
In particular, the prepare_handle_incoming_blocks call is pretty lengthy, and entirely pointless in the common case where several different connections will prepare the exact same blocks.
This commit is contained in:
parent
61dfa310d7
commit
8bdc86beb4
2 changed files with 31 additions and 2 deletions
|
@ -135,6 +135,7 @@ namespace cryptonote
|
|||
std::atomic<bool> m_synchronized;
|
||||
bool m_one_request = true;
|
||||
std::atomic<bool> m_stopping;
|
||||
epee::critical_section m_sync_lock;
|
||||
|
||||
boost::mutex m_buffer_mutex;
|
||||
double get_avg_block_size();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue