Skip to content
This repository was archived by the owner on Nov 6, 2020. It is now read-only.

Commit d3b7dd8

Browse files
committed
Upgrade to jsonrpc v14 (#11151)
* Upgrade to jsonrpc v14 Contains paritytech/jsonrpc#495 with good bugfixes to resource usage. * Bump tokio & futures. * Bump even further. * Upgrade tokio to 0.1.22 * Partially revert "Bump tokio & futures." This reverts commit 100907e.
1 parent 305fea6 commit d3b7dd8

File tree

35 files changed

+1721
-1539
lines changed

35 files changed

+1721
-1539
lines changed

Cargo.lock

Lines changed: 1509 additions & 1343 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ serde_derive = "1.0"
2929
futures = "0.1"
3030
fdlimit = "0.1"
3131
ctrlc = { git = "https://github.com/paritytech/rust-ctrlc.git" }
32-
jsonrpc-core = "10.0.1"
32+
jsonrpc-core = "14.0.0"
3333
parity-bytes = "0.1"
3434
common-types = { path = "ethcore/types" }
3535
ethcore = { path = "ethcore", features = ["parity"] }

cli-signer/rpc-client/Cargo.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ futures = "0.1"
1212
log = "0.4"
1313
serde = "1.0"
1414
serde_json = "1.0"
15-
url = "1.2.0"
15+
url = "2"
1616
matches = "0.1"
17-
parking_lot = "0.7"
18-
jsonrpc-core = "10.0.1"
19-
jsonrpc-ws-server = "10.0.1"
17+
parking_lot = "0.9"
18+
jsonrpc-core = "14.0.0"
19+
jsonrpc-ws-server = "14.0.0"
2020
parity-rpc = { path = "../../rpc" }
2121
keccak-hash = "0.1"

ethcore/private-tx/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ serde_derive = "1.0"
3737
serde_json = "1.0"
3838
tiny-keccak = "1.4"
3939
transaction-pool = "2.0.1"
40-
url = "1"
40+
url = "2"
4141

4242
[dev-dependencies]
4343
env_logger = "0.5"

ethcore/private-tx/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ impl Provider {
272272
let mut state_buf = [0u8; 64];
273273
state_buf[..32].clone_from_slice(&state_hash);
274274
state_buf[32..].clone_from_slice(&H256::from(nonce));
275-
keccak(&state_buf.as_ref())
275+
keccak(AsRef::<[u8]>::as_ref(&state_buf[..]))
276276
}
277277

278278
fn pool_client<'a>(&'a self, nonce_cache: &'a NonceCache, local_accounts: &'a HashSet<Address>) -> miner::pool_client::PoolClient<'a, Client> {

ipfs/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ authors = ["Parity Technologies <[email protected]>"]
99
ethcore = { path = "../ethcore" }
1010
parity-bytes = "0.1"
1111
ethereum-types = "0.4"
12-
jsonrpc-core = "10.0.1"
13-
jsonrpc-http-server = "10.0.1"
12+
jsonrpc-core = "14.0.0"
13+
jsonrpc-http-server = "14.0.0"
1414
rlp = { version = "0.3.0", features = ["ethereum"] }
1515
cid = "0.3"
1616
multihash = "0.8"

miner/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ authors = ["Parity Technologies <[email protected]>"]
1111
ethash = { path = "../ethash", optional = true }
1212
fetch = { path = "../util/fetch", optional = true }
1313
hyper = { version = "0.12", optional = true }
14-
url = { version = "1", optional = true }
14+
url = { version = "2", optional = true }
1515

1616
# Miner
1717
ansi_term = "0.10"

miner/stratum/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ authors = ["Parity Technologies <[email protected]>"]
88
[dependencies]
99
ethereum-types = "0.4"
1010
keccak-hash = "0.1"
11-
jsonrpc-core = "10.0.1"
12-
jsonrpc-tcp-server = "10.0.1"
11+
jsonrpc-core = "14.0.0"
12+
jsonrpc-tcp-server = "14.0.0"
1313
log = "0.4"
1414
parking_lot = "0.7"
1515

miner/stratum/src/lib.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -497,4 +497,11 @@ mod tests {
497497
"{ \"id\": 17, \"method\": \"mining.notify\", \"params\": { \"00040008\", \"100500\" } }\n",
498498
response);
499499
}
500+
501+
#[test]
502+
fn jsonprc_server_is_send_and_sync() {
503+
fn is_send_and_sync<T: Send + Sync>() {}
504+
505+
is_send_and_sync::<JsonRpcServer>();
506+
}
500507
}

parity-clib/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ futures = "0.1.6"
1414
jni = { version = "0.11", optional = true }
1515
panic_hook = { path = "../util/panic-hook" }
1616
parity-ethereum = { path = "../", default-features = false }
17-
tokio = "0.1.11"
17+
tokio = "0.1.22"
1818
tokio-current-thread = "0.1.3"
1919

2020
[features]

0 commit comments

Comments
 (0)