diff --git a/Cargo.lock b/Cargo.lock index 6c27fac..f30f9c5 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -432,6 +432,19 @@ dependencies = [ "futures-core", ] +[[package]] +name = "async-compression" +version = "0.4.13" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7e614738943d3f68c628ae3dbce7c3daffb196665f82f8c8ea6b65de73c79429" +dependencies = [ + "flate2", + "futures-core", + "memchr", + "pin-project-lite 0.2.11", + "tokio", +] + [[package]] name = "async-io" version = "1.13.0" @@ -7344,6 +7357,7 @@ version = "0.11.18" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "cde824a14b7c14f85caff81225f411faacc04a2013f41670f41443742b1c1c55" dependencies = [ + "async-compression", "base64 0.21.2", "bytes", "encoding_rs", @@ -7367,6 +7381,7 @@ dependencies = [ "serde_urlencoded", "tokio", "tokio-native-tls", + "tokio-util", "tower-service", "url", "wasm-bindgen", diff --git a/Cargo.toml b/Cargo.toml index 07d23d1..7baf9d7 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -251,7 +251,7 @@ sha3 = { version = "0.9", default-features = false } stability-rpc = { path = "./stability-rpc", default-features = false } stability-rpc-api = { path = "./primitives/stability-rpc-api", default-features = false } stbl-transaction-validator = { path = "./primitives/transaction-validator", default-features = false } -reqwest = { version = "0.11", features = ["json"] } +reqwest = { version = "0.11", features = ["json", "gzip"] } # Arkworks ark-bls12-377 = { version = "0.4.0", default-features = false, features = ["curve"] } diff --git a/client/authorship/Cargo.toml b/client/authorship/Cargo.toml index 6cf1efa..65b9eb0 100644 --- a/client/authorship/Cargo.toml +++ b/client/authorship/Cargo.toml @@ -38,7 +38,7 @@ sp-keystore = { workspace = true } stability-runtime = { path = "./../../runtime", features = ["std"] } sc-service = { workspace = true } account = { workspace = true, features = ["std"] } -reqwest = { workspace = true, features = ["json"] } +reqwest = { workspace = true, features = ["json", "gzip"] } serde = { workspace = true, features = ["derive"] } bytes = { workspace = true } hex = { workspace = true }