openethereum/ethcore
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
..
benches misc: bump license header to 2019 (#10135) 2019-01-07 11:33:07 +01:00
blockchain Adds cli interface to allow reseting chain to a particular block (#9782) 2019-01-16 16:37:26 +01:00
call-contract Extract CallContract and RegistryInfo traits into their own crate (#10178) 2019-01-16 19:52:21 +01:00
db misc: bump license header to 2019 (#10135) 2019-01-07 11:33:07 +01:00
evm misc: bump license header to 2019 (#10135) 2019-01-07 11:33:07 +01:00
light misc: bump license header to 2019 (#10135) 2019-01-07 11:33:07 +01:00
node-filter Remove caching for node connections (#10143) 2019-01-08 11:31:26 +11:00
private-tx Deprecate account management (#10213) 2019-02-07 14:34:24 +01:00
res Enable St-Peters-Fork ("Constantinople Fix") (#10223) 2019-01-21 22:55:44 +01:00
service Deprecate account management (#10213) 2019-02-07 14:34:24 +01:00
src Deprecate account management (#10213) 2019-02-07 14:34:24 +01:00
sync Increase number of requested block bodies in chain sync (#10247) 2019-02-07 15:27:09 +01:00
types misc: bump license header to 2019 (#10135) 2019-01-07 11:33:07 +01:00
vm misc: bump license header to 2019 (#10135) 2019-01-07 11:33:07 +01:00
wasm Replace ethcore-logger with env-logger. (#10102) 2019-01-08 15:07:20 +01:00
Cargo.toml Deprecate account management (#10213) 2019-02-07 14:34:24 +01:00