Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions rust/op-reth/bin/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ reth-node-builder.workspace = true
reth-db.workspace = true

clap = { workspace = true, features = ["derive", "env"] }
rustls = { workspace = true, features = ["aws_lc_rs", "std"] }
tracing.workspace = true
eyre.workspace = true

Expand Down
7 changes: 7 additions & 0 deletions rust/op-reth/bin/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,13 @@ static MALLOC_CONF: &[u8] = b"prof:true,prof_active:true,lg_prof_sample:19\0";
fn main() {
reth_cli_util::sigsegv_handler::install();

// rustls 0.23 no longer auto-selects a process-level CryptoProvider when
// multiple provider features are present in the dependency graph. Install one
// explicitly before any TLS is used (e.g. the flashblocks wss connection),
// otherwise op-reth panics on startup. See
// https://github.com/ethereum-optimism/optimism/issues/19322
let _ = rustls::crypto::aws_lc_rs::default_provider().install_default();

// Enable backtraces unless a RUST_BACKTRACE value has already been explicitly provided.
if std::env::var_os("RUST_BACKTRACE").is_none() {
unsafe {
Expand Down