mirror of
https://github.com/monero-project/monero.git
synced 2025-08-11 20:20:19 -04:00
cryptonote_protocol_handler: sync speedup
A block queue is now placed between block download and block processing. Blocks are now requested only from one peer (unless starved). Includes a new sync_info coommand.
This commit is contained in:
parent
ab594cfee9
commit
5be43fcdba
22 changed files with 1463 additions and 134 deletions
|
@ -74,6 +74,8 @@ namespace cryptonote
|
|||
|
||||
uint32_t support_flags;
|
||||
|
||||
boost::uuids::uuid connection_id;
|
||||
|
||||
BEGIN_KV_SERIALIZE_MAP()
|
||||
KV_SERIALIZE(incoming)
|
||||
KV_SERIALIZE(localhost)
|
||||
|
@ -94,6 +96,7 @@ namespace cryptonote
|
|||
KV_SERIALIZE(avg_upload)
|
||||
KV_SERIALIZE(current_upload)
|
||||
KV_SERIALIZE(support_flags)
|
||||
KV_SERIALIZE_VAL_POD_AS_BLOB(connection_id)
|
||||
END_KV_SERIALIZE_MAP()
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue