Skip to content

fix(op-reth): install rustls CryptoProvider before flashblocks TLS connection#20145

Open
clarkchen wants to merge 1 commit intoethereum-optimism:developfrom
clarkchen:fix/rustls-crypto-provider
Open

fix(op-reth): install rustls CryptoProvider before flashblocks TLS connection#20145
clarkchen wants to merge 1 commit intoethereum-optimism:developfrom
clarkchen:fix/rustls-crypto-provider

Conversation

@clarkchen
Copy link
Copy Markdown

Summary

rustls 0.23+ requires an explicit CryptoProvider to be installed
before any TLS
operations. Without this, the flashblocks wss:// connection silently
fails.

Adds CryptoProvider::install_default(ring::default_provider()) in
main().

Fixes #19322

Context

PR #20027 addresses the same issue by adding rustls-tls-native-roots to
tokio-tungstenite, but the root cause is the missing crypto provider
initialization.

…nnection

rustls 0.23+ requires an explicit `CryptoProvider` to be installed
before any TLS operations. Without this, the flashblocks websocket
connection (`wss://`) silently fails because `tokio-tungstenite` uses
rustls under the hood but no crypto backend is configured.

This adds `CryptoProvider::install_default(ring::default_provider())`
early in main() before any TLS-dependent code runs.

Fixes ethereum-optimism#19322
@clarkchen clarkchen requested a review from a team as a code owner April 17, 2026 16:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

op-reth v1.11.0 tls issue

1 participant