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 = ["ring"] }
tracing.workspace = true
eyre.workspace = true

Expand Down
6 changes: 6 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,12 @@ 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+ requires an explicit crypto provider; install before any TLS use
// (e.g. flashblocks wss:// websocket connection).
let _ = rustls::crypto::CryptoProvider::install_default(
rustls::crypto::ring::default_provider(),
);

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