openethereum/util
elferdo b7e8621846 Increase number of requested block bodies in chain sync (#10247)
* Increase the number of block bodies requested during Sync.

* Increase the number of block bodies requested during Sync.

* Check if our peer is an older parity client with the bug
  of not handling large requests properly

* Add a ClientVersion struct and a ClientCapabilites trait

* Make ClientVersion its own module

* Refactor and extend use of ClientVersion

* Replace strings with ClientVersion in PeerInfo

* Group further functionality in ClientCapabilities

* Move parity client version data from tuple to its own struct.

* Implement accessor methods for ParityClientData and remove them
from ClientVersion.

* Minor fixes

* Make functions specific to parity return types specific to parity.

* Test for shorter ID strings

* Fix formatting and remove unneeded dependencies.

* Roll back Cargo.lock

* Commit last Cargo.lock

* Convert from string to ClientVersion

* * When checking if peer accepts service transactions just check
  if it's parity, remove version check.

* Remove dependency on semver in ethcore-sync

* Remove unnecessary String instantiation

* Rename peer_info to peer_version

* Update RPC test helpers

* Simplify From<String>

* Parse static version string only once

* Update RPC tests to new ClientVersion struct

* Document public members

* More robust parsing of ID string

* Minor changes.

* Update version in which large block bodies requests appear.

* Update ethcore/sync/src/block_sync.rs

Co-Authored-By: elferdo <elferdo@gmail.com>

* Update util/network/src/client_version.rs

Co-Authored-By: elferdo <elferdo@gmail.com>

* Update util/network/src/client_version.rs

Co-Authored-By: elferdo <elferdo@gmail.com>

* Update tests.

* Minor fixes.
2019-02-07 15:27:09 +01:00
..
bloom misc: bump license header to 2019 (#10135) 2019-01-07 11:33:07 +01:00
blooms-db Blooms file iterator empty on out of range position. (#10145) 2019-01-07 17:54:06 +01:00
dir misc: bump license header to 2019 (#10135) 2019-01-07 11:33:07 +01:00
EIP-712 misc: bump license header to 2019 (#10135) 2019-01-07 11:33:07 +01:00
fake-fetch misc: bump license header to 2019 (#10135) 2019-01-07 11:33:07 +01:00
fastmap misc: bump license header to 2019 (#10135) 2019-01-07 11:33:07 +01:00
fetch update ring to 0.14 (#10262) 2019-02-06 17:53:34 +01:00
io misc: bump license header to 2019 (#10135) 2019-01-07 11:33:07 +01:00
journaldb Replace ethcore-logger with env-logger. (#10102) 2019-01-08 15:07:20 +01:00
keccak-hasher misc: bump license header to 2019 (#10135) 2019-01-07 11:33:07 +01:00
len-caching-lock misc: bump license header to 2019 (#10135) 2019-01-07 11:33:07 +01:00
macros misc: bump license header to 2019 (#10135) 2019-01-07 11:33:07 +01:00
memory-cache misc: bump license header to 2019 (#10135) 2019-01-07 11:33:07 +01:00
memzero misc: bump license header to 2019 (#10135) 2019-01-07 11:33:07 +01:00
migration-rocksdb misc: bump license header to 2019 (#10135) 2019-01-07 11:33:07 +01:00
network Increase number of requested block bodies in chain sync (#10247) 2019-02-07 15:27:09 +01:00
network-devp2p Increase number of requested block bodies in chain sync (#10247) 2019-02-07 15:27:09 +01:00
panic-hook misc: bump license header to 2019 (#10135) 2019-01-07 11:33:07 +01:00
patricia-trie-ethereum misc: bump license header to 2019 (#10135) 2019-01-07 11:33:07 +01:00
registrar misc: bump license header to 2019 (#10135) 2019-01-07 11:33:07 +01:00
rlp-compress Update copyright year to 2019. (#10181) 2019-01-23 09:26:36 +00:00
rlp-derive misc: bump license header to 2019 (#10135) 2019-01-07 11:33:07 +01:00
runtime misc: bump license header to 2019 (#10135) 2019-01-07 11:33:07 +01:00
stats misc: bump license header to 2019 (#10135) 2019-01-07 11:33:07 +01:00
triehash-ethereum misc: bump license header to 2019 (#10135) 2019-01-07 11:33:07 +01:00
unexpected misc: bump license header to 2019 (#10135) 2019-01-07 11:33:07 +01:00
version Enable St-Peters-Fork ("Constantinople Fix") (#10223) 2019-01-21 22:55:44 +01:00