b7e8621846
* 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.
79 lines
2.1 KiB
TOML
79 lines
2.1 KiB
TOML
[package]
|
|
description = "Parity JSON-RPC servers."
|
|
name = "parity-rpc"
|
|
version = "1.12.0"
|
|
license = "GPL-3.0"
|
|
authors = ["Parity Technologies <admin@parity.io>"]
|
|
|
|
[lib]
|
|
|
|
[dependencies]
|
|
ansi_term = "0.10"
|
|
cid = "0.3"
|
|
futures = "0.1.6"
|
|
log = "0.4"
|
|
multihash = "0.8"
|
|
order-stat = "0.1"
|
|
parking_lot = "0.7"
|
|
rand = "0.4"
|
|
rustc-hex = "1.0"
|
|
semver = "0.9"
|
|
serde = "1.0"
|
|
serde_derive = "1.0"
|
|
serde_json = "1.0"
|
|
tempdir = "0.3"
|
|
tiny-keccak = "1.4"
|
|
tokio-timer = "0.1"
|
|
transient-hashmap = "0.4"
|
|
itertools = "0.5"
|
|
|
|
jsonrpc-core = "10.0.1"
|
|
jsonrpc-derive = "10.0.2"
|
|
jsonrpc-http-server = "10.0.1"
|
|
jsonrpc-ws-server = "10.0.1"
|
|
jsonrpc-ipc-server = "10.0.1"
|
|
jsonrpc-pubsub = "10.0.1"
|
|
|
|
common-types = { path = "../ethcore/types" }
|
|
ethash = { path = "../ethash" }
|
|
ethcore = { path = "../ethcore", features = ["test-helpers"] }
|
|
ethcore-accounts = { path = "../accounts", optional = true }
|
|
ethcore-io = { path = "../util/io" }
|
|
ethcore-light = { path = "../ethcore/light" }
|
|
ethcore-logger = { path = "../parity/logger" }
|
|
ethcore-miner = { path = "../miner" }
|
|
ethcore-network = { path = "../util/network" }
|
|
ethcore-private-tx = { path = "../ethcore/private-tx" }
|
|
ethcore-sync = { path = "../ethcore/sync" }
|
|
ethereum-types = "0.4"
|
|
fastmap = { path = "../util/fastmap" }
|
|
parity-bytes = "0.1"
|
|
parity-crypto = "0.3.0"
|
|
|
|
eip-712 = { path = "../util/EIP-712" }
|
|
ethjson = { path = "../json" }
|
|
ethkey = { path = "../accounts/ethkey" }
|
|
ethstore = { path = "../accounts/ethstore" }
|
|
fetch = { path = "../util/fetch" }
|
|
keccak-hash = "0.1.2"
|
|
parity-runtime = { path = "../util/runtime" }
|
|
parity-updater = { path = "../updater" }
|
|
parity-version = { path = "../util/version" }
|
|
patricia-trie = "0.3.0"
|
|
rlp = { version = "0.3.0", features = ["ethereum"] }
|
|
stats = { path = "../util/stats" }
|
|
vm = { path = "../ethcore/vm" }
|
|
|
|
[dev-dependencies]
|
|
ethcore = { path = "../ethcore", features = ["test-helpers"] }
|
|
ethcore-accounts = { path = "../accounts" }
|
|
ethcore-network = { path = "../util/network" }
|
|
fake-fetch = { path = "../util/fake-fetch" }
|
|
kvdb-memorydb = "0.1"
|
|
macros = { path = "../util/macros" }
|
|
pretty_assertions = "0.1"
|
|
transaction-pool = "1.13"
|
|
|
|
[features]
|
|
accounts = ["ethcore-accounts"]
|