Closed FabijanC closed 5 months ago
I'm having a hard time configuring it to use https://crates.io/crates/hyper-tls, which was recommended in https://users.rust-lang.org/t/hyper-client-and-https-how/21571. hyper::client::connect::HttpConnector
is not the same as hyper_util::client::legacy::connect::http::HttpConnector
. Basically there is another needed crate called hyper_util
which contains its own struct called HttpConnector
which doesn't implement all the traits that the rest of the code needs.
And when attempting to use reqwest::Client
instead of hyper::Client
, in #426, we get a not running on tokio 0.2.x runtime
error, which might also be related to mismatching tokio requirements.
Before resorting to the thread channels approach used in #379, I would wait to see if applying the dependency updates suggested in #451 would make it easier to implement any of the approaches suggested in my previous comment.
Run Devnet in fork mode, forking from an https network
In a separate terminal, try getting a block that only exists in origin
Observe an error indicating that https is not supported
With
https://rpc.pathfinder.equilibrium.co/integration-sepolia/rpc/v0_7
it's easier because simply changinghttps
tohttp
in the URL works, but withhttps://free-rpc.nethermind.io
that's not possible.