mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
fix: enable tls feature correctly (#6120)
This commit is contained in:
1
Cargo.lock
generated
1
Cargo.lock
generated
@ -6573,6 +6573,7 @@ dependencies = [
|
||||
"reth-consensus-common",
|
||||
"reth-interfaces",
|
||||
"reth-metrics",
|
||||
"reth-network",
|
||||
"reth-network-api",
|
||||
"reth-primitives",
|
||||
"reth-provider",
|
||||
|
||||
@ -20,6 +20,7 @@ reth-rpc-types.workspace = true
|
||||
reth-provider = { workspace = true, features = ["test-utils"] }
|
||||
reth-transaction-pool = { workspace = true, features = ["test-utils"] }
|
||||
reth-network-api.workspace = true
|
||||
reth-network.workspace = true
|
||||
reth-rpc-engine-api.workspace = true
|
||||
reth-revm = { workspace = true, features = ["js-tracer"] }
|
||||
reth-tasks.workspace = true
|
||||
@ -47,7 +48,7 @@ hyper = "0.14.24"
|
||||
jsonwebtoken = "8"
|
||||
|
||||
## required for optimism sequencer delegation
|
||||
reqwest = { version = "0.11", default-features = false, features = ["rustls"], optional = true }
|
||||
reqwest = { version = "0.11", default-features = false, features = ["rustls-tls"], optional = true }
|
||||
|
||||
# async
|
||||
async-trait.workspace = true
|
||||
@ -87,6 +88,7 @@ optimism = [
|
||||
"reth-primitives/optimism",
|
||||
"reth-rpc-types-compat/optimism",
|
||||
"reth-network-api/optimism",
|
||||
"reth-network/optimism",
|
||||
"reth-provider/optimism",
|
||||
"reth-transaction-pool/optimism",
|
||||
]
|
||||
|
||||
@ -151,7 +151,7 @@ where
|
||||
blocking_task_pool,
|
||||
fee_history_cache,
|
||||
#[cfg(feature = "optimism")]
|
||||
http_client: reqwest::Client::new(),
|
||||
http_client: reqwest::Client::builder().use_rustls_tls().build().unwrap(),
|
||||
};
|
||||
|
||||
Self { inner: Arc::new(inner) }
|
||||
|
||||
Reference in New Issue
Block a user