diff --git a/Cargo.lock b/Cargo.lock index 5262d2c41c..74431b4c02 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3534,6 +3534,23 @@ dependencies = [ "tokio-rustls 0.24.1", ] +[[package]] +name = "hyper-rustls" +version = "0.26.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a0bea761b46ae2b24eb4aef630d8d1c398157b6fc29e6350ecf090a0b70c952c" +dependencies = [ + "futures-util", + "http 1.1.0", + "hyper 1.3.1", + "hyper-util", + "rustls 0.22.4", + "rustls-pki-types", + "tokio", + "tokio-rustls 0.25.0", + "tower-service", +] + [[package]] name = "hyper-system-resolver" version = "0.5.0" @@ -4100,7 +4117,7 @@ checksum = "ac13bc1e44cd00448a5ff485824a128629c945f02077804cb659c07a0ba41395" dependencies = [ "async-trait", "hyper 0.14.28", - "hyper-rustls", + "hyper-rustls 0.24.2", "jsonrpsee-core", "jsonrpsee-types", "serde", @@ -5984,7 +6001,6 @@ dependencies = [ "http 0.2.12", "http-body 0.4.6", "hyper 0.14.28", - "hyper-rustls", "ipnet", "js-sys", "log", @@ -5992,16 +6008,12 @@ dependencies = [ "once_cell", "percent-encoding", "pin-project-lite", - "rustls 0.21.11", - "rustls-native-certs 0.6.3", - "rustls-pemfile 1.0.4", "serde", "serde_json", "serde_urlencoded", "sync_wrapper", "system-configuration", "tokio", - "tokio-rustls 0.24.1", "tokio-util", "tower-service", "url", @@ -6026,6 +6038,7 @@ dependencies = [ "http-body 1.0.0", "http-body-util", "hyper 1.3.1", + "hyper-rustls 0.26.0", "hyper-util", "ipnet", "js-sys", @@ -6034,11 +6047,16 @@ dependencies = [ "once_cell", "percent-encoding", "pin-project-lite", + "rustls 0.22.4", + "rustls-native-certs 0.7.0", + "rustls-pemfile 2.1.2", + "rustls-pki-types", "serde", "serde_json", "serde_urlencoded", "sync_wrapper", "tokio", + "tokio-rustls 0.25.0", "tower-service", "url", "wasm-bindgen", @@ -7077,12 +7095,10 @@ dependencies = [ "async-trait", "clap", "eyre", - "http 0.2.12", - "http-body 0.4.6", "hyper 0.14.28", "jsonrpsee", "parking_lot 0.12.2", - "reqwest 0.11.27", + "reqwest 0.12.4", "reth", "reth-basic-payload-builder", "reth-beacon-consensus", diff --git a/Cargo.toml b/Cargo.toml index 817f829932..bd4fd5fd9a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -351,6 +351,7 @@ futures = "0.3.26" pin-project = "1.0.12" futures-util = "0.3.25" hyper = "0.14.25" +reqwest = { version = "0.12", default-features = false } tower = "0.4" tower-http = "0.4" http = "0.2.8" diff --git a/crates/optimism/node/Cargo.toml b/crates/optimism/node/Cargo.toml index 29a99a961b..be8791c788 100644 --- a/crates/optimism/node/Cargo.toml +++ b/crates/optimism/node/Cargo.toml @@ -36,9 +36,7 @@ revm-primitives.workspace = true # async async-trait.workspace = true hyper.workspace = true -http.workspace = true -http-body.workspace = true -reqwest = { version = "0.11", default-features = false, features = [ +reqwest = { workspace = true, default-features = false, features = [ "rustls-tls-native-roots", ] } tracing.workspace = true diff --git a/crates/optimism/node/src/rpc.rs b/crates/optimism/node/src/rpc.rs index 25a399e185..515e1d8eb5 100644 --- a/crates/optimism/node/src/rpc.rs +++ b/crates/optimism/node/src/rpc.rs @@ -95,7 +95,7 @@ impl SequencerClient { self.http_client() .post(self.endpoint()) - .header(http::header::CONTENT_TYPE, "application/json") + .header(reqwest::header::CONTENT_TYPE, "application/json") .body(body) .send() .await